type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
InterfaceDeclaration
export interface IContinueLearningDataReq { request: { userId: string | undefined, courseId: string, contentIds: string[], batchId: string | undefined | null fields?: string[] } }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
export interface IContent { platform?: any addedOn: string appIcon: string artifactUrl: string averageRating?: any body?: string certificationList?: IRelatedContentMeta[] certificationStatus?: TCertificationStatus certificationSubmissionDate?: string certificationUrl: string ...
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
export interface IContentResponse { id: string, params: any, responseCode: string, result: { content: IContent }, ts: string, ver: string }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
export interface IBatch { batchId: string, createdBy: string, endDate: string | null, enrollmentType: string, identifier: string, name: string, startDate: string, status: number cert_templates: null collectionId: string courseId: string createdDate: string createdFor...
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
export interface IBatchListResponse { content?: IBatch[] count?: number, enrolled?: boolean, }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
export interface ICourse { active: true addedBy: string batch: IBatch batchId: string certificates: [] collectionId: string completedOn: string | null completionPercentage: number | null content: IContent contentId: string contentStatus: any courseId: string courseLo...
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
export interface IContentMinimal { appIcon: string artifactUrl: string complexityLevel: string contentType: EContentTypes description: string displayContentType?: EDisplayContentTypes duration: number identifier: string hasAccess?: boolean isInIntranet?: boolean learningMode...
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
export interface ICollectionHierarchyResponse { data: IContent hasMore: boolean totalContents: number }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
export interface IRelatedContentMeta { identifier: string name: string }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
interface IMarkAsCompleteProgress { progressStatus: 'open' | 'started' | 'completed' showMarkAsComplete: boolean markAsCompleteReason: string progressSupported: boolean progress: number | null }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
interface ITag { id: string type: string value: string }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
interface IMSArtifactDetails { channelId: string videoId: string }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
interface IClient { displayName: string id: string name: string }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
interface ISubtitle { srclang: string label: string url: string }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
interface IPrePostContent { identifier: string name: string }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
interface IResourceDetail { title?: string url?: string }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
interface IResourcePlayground { appIcon: string artifactUrl: string identifier: string name: string }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
interface ITrack { id: string name: string status: string visibility: string }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
interface ISkill { id: string category: string skill: string name: string }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
export interface ICreator { id: string name: string email: string }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
export interface IContentTopic { identifier: string name: string }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
// API Based export interface IContact { id: string name: string email: string }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
InterfaceDeclaration
export interface IViewerContinueLearningRequest { resourceId: string contextPathId: string data: string dateAccessed: number contextType?: string }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
EnumDeclaration
export enum EContentTypes { PROGRAM = 'Learning Path', CHANNEL = 'Channel', COURSE = 'Course', KNOWLEDGE_ARTIFACT = 'Knowledge Artifact', KNOWLEDGE_BOARD = 'Knowledge Board', LEARNING_JOURNEY = 'Learning Journeys', MODULE = 'Collection', RESOURCE = 'Resource', }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
EnumDeclaration
export enum EResourcePrimaryCategories { LEARNING_RESOURCE = 'Learning Resource', }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
EnumDeclaration
export enum EMiscPlayerSupportedCollectionTypes { PLAYLIST = 'Playlist', }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
EnumDeclaration
export enum EMimeTypes { COLLECTION = 'application/vnd.ekstep.content-collection', HTML = 'application/html', HTML_TEXT = 'text/html', ILP_FP = 'application/ilpfp', IAP = 'application/iap-assessment', M4A = 'audio/m4a', MP3 = 'audio/mpeg', MP4 = 'video/mp4', M3U8 = 'application/x-mp...
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
EnumDeclaration
export enum EDisplayContentTypes { ASSESSMENT = 'ASSESSMENT', AUDIO = 'AUDIO', CERTIFICATION = 'CERTIFICATION', CHANNEL = 'Channel', CLASS_DIAGRAM = 'CLASS_DIAGRAM', COURSE = 'COURSE', DEFAULT = 'DEFAULT', DRAG_DROP = 'DRAG_DROP', EXTERNAL_CERTIFICATION = 'EXTERNAL_CERTIFICATION', ...
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
EnumDeclaration
// for UI export enum EFilterCategory { ALL = 'ALL', LEARN = 'LEARN', PRACTICE = 'PRACTICE', ASSESS = 'ASSESS', }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
EnumDeclaration
// for UI export enum ETagType { NEWLY_ADDED = 'NEWLY ADDED', }
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
TypeAliasDeclaration
type TCertificationStatus = 'ongoing' | 'passed' | 'canAttempt' | 'cannotAttempt'
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
TypeAliasDeclaration
export type TLearningMode = 'Self-Paced' | 'Instructor-Led' | 'Open' | 'Closed'
aastarurmika/sunbird-cb-adminportal
project/ws/app/src/lib/head/_services/widget-content.model.ts
TypeScript
ArrowFunction
async (method: string, params: any): Promise<any> => { try { const uri = `${CHAT_API_URL}/${method}?token=${CHAT_API_TOKEN}`; const jsonResponse = await rp({ uri, method: 'POST', headers: { 'Content-Type': 'application/json' }, body: params, json: true, }); ...
Shtokarev/NodeBackend
src/modules/chatApi/chatBot.ts
TypeScript
ArrowFunction
async (message: WhatsAppMessage): Promise<void> => { const { body, chatId } = message; try { const matchResult = body.match(imgRegex); if (matchResult) { const url = matchResult[0]; const upload = await uploadImage2S3Bucket(url); if (upload.success) { await apiChatApi('sendMes...
Shtokarev/NodeBackend
src/modules/chatApi/chatBot.ts
TypeScript
ArrowFunction
err => err
Shtokarev/NodeBackend
src/modules/chatApi/chatBot.ts
TypeScript
InterfaceDeclaration
export interface WhatsAppMessage { author: string; body: string; chatId: string; senderName: string; fromMe: boolean; }
Shtokarev/NodeBackend
src/modules/chatApi/chatBot.ts
TypeScript
FunctionDeclaration
export function sortRequests<T>(requests: Request<T>[]): Request<T>[] { // In order to keep consistency between runs, requests are sorted by the following criteria: // // 1. Block number (ascending) // 2. Transaction hash (ascending) return orderBy(requests, ['metadata.blockNumber', 'metadata.transaction...
aquarat/airnode
packages/airnode-node/src/requests/sorting.ts
TypeScript
FunctionDeclaration
export function sortGroupedRequests(requests: GroupedRequests): GroupedRequests { return { apiCalls: sortRequests(requests.apiCalls), withdrawals: sortRequests(requests.withdrawals), }; }
aquarat/airnode
packages/airnode-node/src/requests/sorting.ts
TypeScript
ClassDeclaration
class CreateUserService { public async execute({ name, email, password }: RequestDTO): Promise<User> { const userRepository = getRepository(User); const userExists = await userRepository.findOne({ where: { email }, }); if (userExists) { throw new Error(`Email "${email}" already used`); ...
varejaodfav/gobarber
src/services/users/CreateUserService.ts
TypeScript
InterfaceDeclaration
interface RequestDTO { name: string; email: string; password: string; }
varejaodfav/gobarber
src/services/users/CreateUserService.ts
TypeScript
MethodDeclaration
public async execute({ name, email, password }: RequestDTO): Promise<User> { const userRepository = getRepository(User); const userExists = await userRepository.findOne({ where: { email }, }); if (userExists) { throw new Error(`Email "${email}" already used`); } const hashedPassw...
varejaodfav/gobarber
src/services/users/CreateUserService.ts
TypeScript
ArrowFunction
() => ( <svg className="a-svg-icon a-svg-icon--bold"
futurelearn/markdown-editor
src/Icons/Bold.tsx
TypeScript
InterfaceDeclaration
export interface BinanceArticle { title: string releaseDate: number // ... other non relevant fields }
colxi/crypto-announcements-observer
src/bot/data-sources/binance-zh/types.ts
TypeScript
InterfaceDeclaration
export interface BinanceResponse { data: { catalogs: [ { articles: BinanceArticle[] } ] } // ... other non relevant fields }
colxi/crypto-announcements-observer
src/bot/data-sources/binance-zh/types.ts
TypeScript
ArrowFunction
contractName => { return snapshotAddresses[contractName]; }
SetProtocol/set-protocol-oracles
utils/snapshotUtils.ts
TypeScript
ArrowFunction
() => { let component: EditShotsFormComponent; let fixture: ComponentFixture<EditShotsFormComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ EditShotsFormComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(E...
sakmanal/ArmyUnit-HR-App
src/app/memberfile/edit/edit-shots-form/edit-shots-form.component.spec.ts
TypeScript
ArrowFunction
() => { TestBed.configureTestingModule({ declarations: [ EditShotsFormComponent ] }) .compileComponents(); }
sakmanal/ArmyUnit-HR-App
src/app/memberfile/edit/edit-shots-form/edit-shots-form.component.spec.ts
TypeScript
ArrowFunction
() => { fixture = TestBed.createComponent(EditShotsFormComponent); component = fixture.componentInstance; fixture.detectChanges(); }
sakmanal/ArmyUnit-HR-App
src/app/memberfile/edit/edit-shots-form/edit-shots-form.component.spec.ts
TypeScript
ArrowFunction
(r: MessageReaction) => r.emoji.name == EmojiConstants.PIN
Sheepolution/pin-it-bot
code/src/Handlers/PinHandler.ts
TypeScript
ArrowFunction
(a, b) => { return a.createdTimestamp - b.createdTimestamp; }
Sheepolution/pin-it-bot
code/src/Handlers/PinHandler.ts
TypeScript
ArrowFunction
(a, b) => { return b.createdTimestamp - a.createdTimestamp; }
Sheepolution/pin-it-bot
code/src/Handlers/PinHandler.ts
TypeScript
ClassDeclaration
export default class PinHandler { public static async OnReaction(obj: any, reaction: MessageReaction) { if (reaction.emoji.name == EmojiConstants.PIN) { if (!await DiscordService.CheckPermission(obj.messageInfo, 'MANAGE_MESSAGES', 'unpin your message', false)) { return; ...
Sheepolution/pin-it-bot
code/src/Handlers/PinHandler.ts
TypeScript
MethodDeclaration
public static async OnReaction(obj: any, reaction: MessageReaction) { if (reaction.emoji.name == EmojiConstants.PIN) { if (!await DiscordService.CheckPermission(obj.messageInfo, 'MANAGE_MESSAGES', 'unpin your message', false)) { return; } obj.messageInfo.mes...
Sheepolution/pin-it-bot
code/src/Handlers/PinHandler.ts
TypeScript
MethodDeclaration
public static async AddPinReaction(messageInfo: IMessageInfo, guild: Guild) { if (!await DiscordService.CheckPermission(messageInfo, 'ADD_REACTIONS')) { return; } if (messageInfo.message == null) { return; } messageInfo?.message.react(EmojiConstants.PIN...
Sheepolution/pin-it-bot
code/src/Handlers/PinHandler.ts
TypeScript
MethodDeclaration
public static async PinMessage(messageInfo: IMessageInfo, guild: Guild) { if (!await DiscordService.CheckPermission(messageInfo, 'MANAGE_MESSAGES', 'pin your message')) { return; } const pinned = await (<TextChannel>messageInfo.channel).messages.fetchPinned(true); const pin...
Sheepolution/pin-it-bot
code/src/Handlers/PinHandler.ts
TypeScript
MethodDeclaration
public static OnCommand(messageInfo: IMessageInfo, guild: Guild) { const commands = CommandConstants.COMMANDS; switch (messageInfo.commandInfo.commands) { case commands.UNPIN: this.OnUnpin(messageInfo, guild); break; default: return false; ...
Sheepolution/pin-it-bot
code/src/Handlers/PinHandler.ts
TypeScript
MethodDeclaration
private static async OnUnpin(messageInfo: IMessageInfo, guild: Guild) { if (!await DiscordService.CheckPermission(messageInfo, 'MANAGE_MESSAGES', 'unpin your message')) { return; } const pinned = await (<TextChannel>messageInfo.channel).messages.fetchPinned(true); const pin...
Sheepolution/pin-it-bot
code/src/Handlers/PinHandler.ts
TypeScript
FunctionDeclaration
/** * Main function which calls the methods and refreshes the blockchain explorer box each time that it runs succesfully. * This will be used in other files to call the command to package a smart contract project. */ export async function packageSmartContract(workspace?: vscode.WorkspaceFolder, overrideName?: string...
kant/blockchain-vscode-extension
client/src/commands/packageSmartContractCommand.ts
TypeScript
FunctionDeclaration
/** * Method to determine if there are multiple smart contracts within the active workspace. If so, it will provide a quick pick box * to have the developer choose which smart contract he wishes to package and get its path. If not, it will automatically get the path of the only smart contract project there is. * @re...
kant/blockchain-vscode-extension
client/src/commands/packageSmartContractCommand.ts
TypeScript
FunctionDeclaration
/** * Method to determine the language used in the development of the smart contract project, which will be used to determine the correct directories * to package the projects. * @param workspaceDir {String} workspaceDir A string containing the path to the current active workspace (the workspace of the project the u...
kant/blockchain-vscode-extension
client/src/commands/packageSmartContractCommand.ts
TypeScript
FunctionDeclaration
/** * Method to retrieve the package name and version from the projects package.json file, and returns them to be used in the getFinalDirectory() method. * @param workspaceDir {String} workspaceDir A string containing the path to the current active workspace (the workspace of the project the user is packaging). * @r...
kant/blockchain-vscode-extension
client/src/commands/packageSmartContractCommand.ts
TypeScript
FunctionDeclaration
/** * Method which calls an input box should the project be coded in java, which asks the user for a package name and version * (as java projects do not contain a package.json file), and returns an object containing both these values. * @returns {string, string} Returns an object with the workspacePackageName and wo...
kant/blockchain-vscode-extension
client/src/commands/packageSmartContractCommand.ts
TypeScript
FunctionDeclaration
/** * Method which calls an input box should the project be coded in golang, which asks the user for a package name and version * (as golang projects do not contain a package.json file), and returns an object containing both these values. * @returns {string, string} Returns an object with the workspacePackageName an...
kant/blockchain-vscode-extension
client/src/commands/packageSmartContractCommand.ts
TypeScript
FunctionDeclaration
function checkForProjectErrors(workspaceDir: vscode.WorkspaceFolder): void { const collections: [vscode.Uri, vscode.Diagnostic[]][] = vscode.languages.getDiagnostics(); for (const collection of collections) { for (const thing of collection) { if (thing instanceof vscode.Uri) { ...
kant/blockchain-vscode-extension
client/src/commands/packageSmartContractCommand.ts
TypeScript
FunctionDeclaration
async function buildWorkspace(workspaceDir: vscode.WorkspaceFolder): Promise<void> { // Find all of the tasks. const tasks: vscode.Task[] = await vscode.tasks.fetchTasks(); // Then limit the tasks to build tasks that we can actually use. const buildTasks: vscode.Task[] = tasks.filter((task: vscode.Ta...
kant/blockchain-vscode-extension
client/src/commands/packageSmartContractCommand.ts
TypeScript
ArrowFunction
async (progress: vscode.Progress<{ message: string }>) => { progress.report({ message: `Packaging Smart Contract` }); try { // Determine the filename of the new package. const pkgFile: string = path.join(resolvedPkgDir, `${properties.workspacePackageName}@${properties.workspace...
kant/blockchain-vscode-extension
client/src/commands/packageSmartContractCommand.ts
TypeScript
ArrowFunction
(task: vscode.Task) => { if (!task.scope || task.scope === vscode.TaskScope.Global || task.scope === vscode.TaskScope.Workspace) { // We don't want unscoped tasks, global tasks, or workspace tasks. return false; } else if (task.scope.uri.fsPath !== workspaceDir.uri.fsPath) { ...
kant/blockchain-vscode-extension
client/src/commands/packageSmartContractCommand.ts
TypeScript
ArrowFunction
(resolve: any): any => { const buildTaskListener: vscode.Disposable = vscode.tasks.onDidEndTask((e: vscode.TaskEndEvent) => { if (e.execution === buildTaskExecution) { buildTaskListener.dispose(); resolve(); } }); }
kant/blockchain-vscode-extension
client/src/commands/packageSmartContractCommand.ts
TypeScript
ArrowFunction
(e: vscode.TaskEndEvent) => { if (e.execution === buildTaskExecution) { buildTaskListener.dispose(); resolve(); } }
kant/blockchain-vscode-extension
client/src/commands/packageSmartContractCommand.ts
TypeScript
ArrowFunction
({ classes }) => ( <svg role="presentation"
Adloya/fluentui
packages/fluentui/react-icons-northstar/src/components/PhoneClockIcon.tsx
TypeScript
MethodDeclaration
cx(iconClassNames
Adloya/fluentui
packages/fluentui/react-icons-northstar/src/components/PhoneClockIcon.tsx
TypeScript
ArrowFunction
() => ({ popover: { display: "flex", flexDirection: "column", }, })
essence-community/core-frontend
packages/@essence/essence-constructor-classes/src/AuditInfo/containers/AuditInfoContainer.styles.ts
TypeScript
FunctionDeclaration
function IconUndo(props: Props) { return ( <svg {...props} viewBox="0 0 24 24"> <path d="M12.466 8c-2.65 0-5.05.99-6.9 2.6l-1.89-1.89c-.63-.63-1.71-.19-1.71.7V15c0 .55.45 1 1 1h5.59c.89 0 1.34-1.08.71-1.71l-1.91-1.91c1.39-1.16 3.16-1.88 5.12-1.88 3.16 0 5.89 1.84 7.19 4.5.27.56.91.84 1.5.64.71-.23 1.07-1.0...
Alphy11/lunar
packages/icons/src/interface/IconUndo.tsx
TypeScript
ClassDeclaration
@Component({ selector: 'app-footer', templateUrl: './footer.component.html', styleUrls: ['./footer.component.scss'] }) export class FooterComponent implements OnInit { constructor() { } ngOnInit(): void { } }
rajeshverma1996/konarkdryfruits
src/app/footer/footer.component.ts
TypeScript
MethodDeclaration
ngOnInit(): void { }
rajeshverma1996/konarkdryfruits
src/app/footer/footer.component.ts
TypeScript
ClassDeclaration
export class Bottle extends Material { name:string; units: number; constructor(units:number){ super(units); this.name = 'Bottle'; } }
EagleLizard/FactorySimulator
Material/Bottle.ts
TypeScript
InterfaceDeclaration
export interface YafeFormDefinition { name: string; title: string; groups: YafeFormGroup[]; }
tobiasbruns/yafe
frontend/yafe-forms/libs/core/src/lib/yafe-form.model.ts
TypeScript
InterfaceDeclaration
export interface YafeFormItem { itemType: 'section' | 'field'; name: string; condition?: string; }
tobiasbruns/yafe
frontend/yafe-forms/libs/core/src/lib/yafe-form.model.ts
TypeScript
InterfaceDeclaration
export interface YafeFormGroup extends YafeFormItem { title?: string; items: YafeFormItem[]; }
tobiasbruns/yafe
frontend/yafe-forms/libs/core/src/lib/yafe-form.model.ts
TypeScript
InterfaceDeclaration
export interface YafeFieldDefinition extends YafeFormItem { type: 'text' | 'select' | 'checkbox'; subType?: string; label: string; defaultValue?: string | number | boolean; tip?: string; description?: string; validators: YafeValidator[]; properties?: [{ [name: string]: string | number | any }] }
tobiasbruns/yafe
frontend/yafe-forms/libs/core/src/lib/yafe-form.model.ts
TypeScript
InterfaceDeclaration
export interface YafeValidator { type: 'BuildIn'; name: 'required'; errorText?: string; }
tobiasbruns/yafe
frontend/yafe-forms/libs/core/src/lib/yafe-form.model.ts
TypeScript
InterfaceDeclaration
export interface FormFieldComponent { definition: YafeFieldDefinition; formControl: AbstractControl; }
tobiasbruns/yafe
frontend/yafe-forms/libs/core/src/lib/yafe-form.model.ts
TypeScript
InterfaceDeclaration
export interface FormSectionComponent { definition: YafeFormGroup; }
tobiasbruns/yafe
frontend/yafe-forms/libs/core/src/lib/yafe-form.model.ts
TypeScript
ArrowFunction
(_, _1) => true
mythwind/datahub
datahub-web-react/src/app/entity/shared/containers/profile/EntityProfile.tsx
TypeScript
ArrowFunction
<T, U>({ urn, useEntityQuery, useUpdateQuery, entityType, getOverrideProperties, tabs, sidebarSections, }: Props<T, U>): JSX.Element => { const isLineageMode = useIsLineageMode(); const entityRegistry = useEntityRegistry(); const history = useHistory(); const isCompact = Rea...
mythwind/datahub
datahub-web-react/src/app/entity/shared/containers/profile/EntityProfile.tsx
TypeScript
ArrowFunction
(tab) => ({ ...tab, display: { ...defaultTabDisplayConfig, ...tab.display } })
mythwind/datahub
datahub-web-react/src/app/entity/shared/containers/profile/EntityProfile.tsx
TypeScript
ArrowFunction
(sidebarSection) => ({ ...sidebarSection, display: { ...defaultSidebarSection, ...sidebarSection.display }, })
mythwind/datahub
datahub-web-react/src/app/entity/shared/containers/profile/EntityProfile.tsx
TypeScript
ArrowFunction
({ tabName, tabParams, method = 'push', }: { tabName: string; tabParams?: Record<string, any>; method?: 'push' | 'replace'; }) => { analytics.event({ type: EventType.EntitySectionViewEvent, ...
mythwind/datahub
datahub-web-react/src/app/entity/shared/containers/profile/EntityProfile.tsx
TypeScript
ArrowFunction
() => refetch()
mythwind/datahub
datahub-web-react/src/app/entity/shared/containers/profile/EntityProfile.tsx
TypeScript
ArrowFunction
(aspect) => ({ name: aspect.renderSpec?.displayName || aspect.aspectName, component: () => ( <DynamicTab renderSpec={aspect.renderSpec} type={aspect.renderSpec?.displayType} payload={aspect.payload} /> ...
mythwind/datahub
datahub-web-react/src/app/entity/shared/containers/profile/EntityProfile.tsx
TypeScript
ArrowFunction
() => ( <DynamicTab renderSpec={aspect.renderSpec}
mythwind/datahub
datahub-web-react/src/app/entity/shared/containers/profile/EntityProfile.tsx
TypeScript
TypeAliasDeclaration
type Props<T, U> = { urn: string; entityType: EntityType; useEntityQuery: ( baseOptions: QueryHookOptions< T, Exact<{ urn: string; }> >, ) => QueryResult< T, Exact<{ urn: string; }> >; useUpd...
mythwind/datahub
datahub-web-react/src/app/entity/shared/containers/profile/EntityProfile.tsx
TypeScript
MethodDeclaration
isLineageMode ? ( <LineageExplorer type={entityType} urn={urn} /> ) : ( <SplitPane split="vertical" minSize={window.innerWidth
mythwind/datahub
datahub-web-react/src/app/entity/shared/containers/profile/EntityProfile.tsx
TypeScript
ArrowFunction
async () => await disposeTestDocumentStore(store)
Or-Geva/ravendb-nodejs-client
test/Ported/Issues/RDBC_316.ts
TypeScript
ArrowFunction
async () => { { const session = store.openSession(); const user1 = Object.assign(new User(), { name: "Marcin" }); const user2 = Object.assign(new User(), { name: "Marcin" }); await session.store(user1, "us...
Or-Geva/ravendb-nodejs-client
test/Ported/Issues/RDBC_316.ts
TypeScript
ClassDeclaration
class User { public name: string; }
Or-Geva/ravendb-nodejs-client
test/Ported/Issues/RDBC_316.ts
TypeScript
ArrowFunction
geneItem => geneItem.getValue("id") === gene.id ? suggestedGene : geneItem
fossabot/reaction-1
src/Components/Onboarding/Steps/Genes/GeneSearchResults.tsx
TypeScript
ArrowFunction
(store, data) => this.onGeneFollowed(gene, store, data)
fossabot/reaction-1
src/Components/Onboarding/Steps/Genes/GeneSearchResults.tsx
TypeScript
ArrowFunction
(item, index) => { const imageUrl = get(item, i => i.image.cropped.url) return ( <LinkContainer key={`gene-search-results-${index}`}
fossabot/reaction-1
src/Components/Onboarding/Steps/Genes/GeneSearchResults.tsx
TypeScript
ArrowFunction
i => i.image.cropped.url
fossabot/reaction-1
src/Components/Onboarding/Steps/Genes/GeneSearchResults.tsx
TypeScript