type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
() => { const newMenus = [{ text: 'a', key: 'a' }]; srv.add(newMenus); expect(srv.getItem('a')!.text).toBe('a'); srv.setItem('a', { text: 'b', badge: 10 }); expect(srv.getItem('a')!.text).toBe('b'); expect(srv.getItem('a')!.badge).toBe(10); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { const newMenus = [{ text: 'a', key: 'a' }]; srv.add(newMenus); srv.setItem('invalid-key', { text: 'b' }); expect(srv.getItem('a')!.text).toBe('a'); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { it('ng-alain #107', () => { srv.add(deepCopy(DATA)); expect(srv.menus[0].children!.filter(w => w.shortcutRoot === true).length).toBe(1); expect(srv.menus[0].children![1].children!.length).toBe(1); srv.resume(); expect(srv.menus[0].children!.filter(w => w.shortcutRo...
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add(deepCopy(DATA)); expect(srv.menus[0].children!.filter(w => w.shortcutRoot === true).length).toBe(1); expect(srv.menus[0].children![1].children!.length).toBe(1); srv.resume(); expect(srv.menus[0].children!.filter(w => w.shortcutRoot === true).length).toBe(1); ...
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
w => w.shortcutRoot === true
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { it('should be null', () => { srv.add([ { text: 'dashboard', link: '/dashboard', icon: null, }, ]); const icon: any = srv.menus[0].icon; expect(icon).toBeNull(); }); it('should be undefined', () => { ...
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add([ { text: 'dashboard', link: '/dashboard', icon: null, }, ]); const icon: any = srv.menus[0].icon; expect(icon).toBeNull(); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add([ { text: 'dashboard', link: '/dashboard', icon: undefined, }, ]); const icon: any = srv.menus[0].icon; expect(icon).toBeUndefined(); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add([ { text: 'dashboard', link: '/dashboard', icon: 'aa', }, ]); const icon: any = srv.menus[0].icon; expect(typeof icon).toBe('object'); expect(icon.type).toBe('class'); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add([ { text: 'dashboard', link: '/dashboard', icon: { type: 'icon', value: 'user' }, }, ]); const icon: any = srv.menus[0].icon; expect(typeof icon).toBe('object'); expect(icon.type).toBe('icon'); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add([ { text: 'dashboard', link: '/dashboard', icon: `anticon anticon-user`, }, ]); const icon: any = srv.menus[0].icon; expect(typeof icon).toBe('object'); expect(icon.type).toBe('icon'); expect(icon.va...
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { srv.add([ { text: 'dashboard', link: '/dashboard', icon: `http://ng-alain.com/1.jpg`, }, ]); const icon: any = srv.menus[0].icon; expect(typeof icon).toBe('object'); expect(icon.type).toBe('img'); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { it('with ALAIN_I18N_TOKEN', () => { TestBed.configureTestingModule({ providers: [ MenuService, { provide: ALAIN_I18N_TOKEN, useClass: AlainI18NServiceFake }, { provide: ACLService, useClass: MockACLService }, ], }); srv = TestBed.inject<MenuSe...
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { TestBed.configureTestingModule({ providers: [ MenuService, { provide: ALAIN_I18N_TOKEN, useClass: AlainI18NServiceFake }, { provide: ACLService, useClass: MockACLService }, ], }); srv = TestBed.inject<MenuService>(MenuService); spyOn(srv, 'r...
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
() => { TestBed.configureTestingModule({ providers: [MenuService, { provide: ACLService, useClass: MockACLService }], }); srv = TestBed.inject<MenuService>(MenuService); expect(true).toBe(true); }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ClassDeclaration
class MockACLService { can(val: string) { return val === 'admin'; } }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
MethodDeclaration
can(val: string) { return val === 'admin'; }
bluesiboy/delon
packages/theme/src/services/menu/menu.service.spec.ts
TypeScript
ArrowFunction
(props) => { const localStore = useLocalStore<IndexPageStore>(); return ( <LoadingIndicator isActive={localStore.isRequesting}> <MainOverview /> <Divider horizontal={true}> <Header as="h4"> <Icon name="users" /> Actors </Header> </Divider> <Actors /> </Loa...
codeBelt/mobx-local-global-stores
src/components/pages/index-page/IndexPage.tsx
TypeScript
InterfaceDeclaration
interface IProps {}
codeBelt/mobx-local-global-stores
src/components/pages/index-page/IndexPage.tsx
TypeScript
ArrowFunction
(t) => `1px solid ${t?.colors?.borders}`
prismicio/slice-machine
packages/slice-machine/src/theme.ts
TypeScript
ArrowFunction
(t) => t?.colors?.choggleBox
prismicio/slice-machine
packages/slice-machine/src/theme.ts
TypeScript
ArrowFunction
(t) => t?.colors?.link
prismicio/slice-machine
packages/slice-machine/src/theme.ts
TypeScript
ArrowFunction
(t) => t?.colors?.gray
prismicio/slice-machine
packages/slice-machine/src/theme.ts
TypeScript
ArrowFunction
(t: MyTheme) => `1px solid ${t.codeColor.border}`
prismicio/slice-machine
packages/slice-machine/src/theme.ts
TypeScript
ArrowFunction
(t: MyTheme) => t.codeColor.blue
prismicio/slice-machine
packages/slice-machine/src/theme.ts
TypeScript
ArrowFunction
(t: MyTheme) => t.codeColor.gray
prismicio/slice-machine
packages/slice-machine/src/theme.ts
TypeScript
ArrowFunction
(t: MyTheme) => t.codeColor.orange
prismicio/slice-machine
packages/slice-machine/src/theme.ts
TypeScript
ArrowFunction
(t: MyTheme) => t.codeColor.green
prismicio/slice-machine
packages/slice-machine/src/theme.ts
TypeScript
InterfaceDeclaration
interface MyTheme extends Theme { codeColor: { [x: string]: string; }; }
prismicio/slice-machine
packages/slice-machine/src/theme.ts
TypeScript
ClassDeclaration
export declare class ScopeData { readonly path: (string | number)[]; readonly allData: TemplateData; constructor(data: TemplateData); getScopeData<T extends TemplateContent | TemplateData[]>(): T; }
hydra1983/easy-template-x
dist/types/compilation/scopeData.d.ts
TypeScript
MethodDeclaration
getScopeData<T extends TemplateContent | TemplateData[]>(): T;
hydra1983/easy-template-x
dist/types/compilation/scopeData.d.ts
TypeScript
FunctionDeclaration
export function SortOption<T>({ label, value: sort, asc, desc, defaultOrder = 'ASC', default: defaultVal = false, }: SortOptionProps<T>) { const classes = useStyles(); const ascNode = asc ? ( <ActualSortOption order="ASC" label={asc} sort={sort} defaultOrder={defaultOrder} ...
SeedCompany/cord-field
src/components/Sort/SortOption.tsx
TypeScript
FunctionDeclaration
function ActualSortOption<T>({ order, label, sort, defaultOrder, default: defaultVal, }: { order: Order; label: React.ReactNode; sort: keyof T; defaultOrder: Order; default: boolean; }) { const { value, onChange } = useRadioGroup()!; return ( <FormControlLabel label={label} onCh...
SeedCompany/cord-field
src/components/Sort/SortOption.tsx
TypeScript
ArrowFunction
({ typography, spacing }) => ({ label: { fontWeight: typography.weight.bold, margin: spacing(2, 0, 1), }, })
SeedCompany/cord-field
src/components/Sort/SortOption.tsx
TypeScript
InterfaceDeclaration
export interface SortOptionProps<T> { label: ReactNode; value: keyof T; asc?: ReactNode; desc?: ReactNode; defaultOrder?: Order; default?: boolean; }
SeedCompany/cord-field
src/components/Sort/SortOption.tsx
TypeScript
FunctionDeclaration
/** * Given a design token name, return a new FAST CSSDesignToken. * * @remarks A VS Code theme CSS variable can be optionally passed to be * associated with the design token. * * @remarks On the first execution the VS Code theme listener will also be * initialized. * * @param name A design token name. * @par...
sudhay23/JetSet-VSCode-Extension
assets/webview-ui-toolkit/build/dts/utilities/design-tokens/create.d.ts
TypeScript
TypeAliasDeclaration
/** * The possible CSSDesignToken generic types. */ export declare type T = string | number | boolean | symbol | any[] | Uint8Array | ({ createCSS?(): string; } & Record<PropertyKey, any>) | null;
sudhay23/JetSet-VSCode-Extension
assets/webview-ui-toolkit/build/dts/utilities/design-tokens/create.d.ts
TypeScript
ArrowFunction
(coordinate: Coordinate) => { this.factorySite.latitude = coordinate.latitude; this.factorySite.longitude = coordinate.longitude; this.defaultLatitude = coordinate.latitude; this.defaultLongitude = coordinate.longitude; }
IndustryFusion/IndustryFusion
fusionfrontend/src/app/components/content/factory-site-map/factory-site-map.component.ts
TypeScript
ClassDeclaration
@Component({ selector: 'app-factory-site-map', templateUrl: './factory-site-map.component.html', styleUrls: ['./factory-site-map.component.scss'] }) export class FactorySiteMapComponent implements OnInit, OnChanges { @Input() factorySites: FactorySite[]; @Input() factorySite: FactorySite; @Input() ...
IndustryFusion/IndustryFusion
fusionfrontend/src/app/components/content/factory-site-map/factory-site-map.component.ts
TypeScript
MethodDeclaration
ngOnInit(): void { if (this.modalMode) { this.zoom = 7; this.height = 460; this.defaultLatitude = 48.5; } }
IndustryFusion/IndustryFusion
fusionfrontend/src/app/components/content/factory-site-map/factory-site-map.component.ts
TypeScript
MethodDeclaration
navigateToFactorySite(id: ID): void { this.router.navigate([id], { relativeTo: this.route }); }
IndustryFusion/IndustryFusion
fusionfrontend/src/app/components/content/factory-site-map/factory-site-map.component.ts
TypeScript
MethodDeclaration
ngOnChanges(changes: SimpleChanges): void { if (this.modalMode && changes.factorySite && (this.factorySite.zip || this.factorySite.city)) { this.placeMarkerForFactorySite(this.factorySite); } }
IndustryFusion/IndustryFusion
fusionfrontend/src/app/components/content/factory-site-map/factory-site-map.component.ts
TypeScript
MethodDeclaration
placeMarkerForFactorySite(factorySite: FactorySite) { this.geocoderService.getGeocode(factorySite.line1, factorySite.zip, factorySite.city, factorySite.country.name, (coordinate: Coordinate) => { this.factorySite.latitude = coordinate.latitude; this.factorySite.l...
IndustryFusion/IndustryFusion
fusionfrontend/src/app/components/content/factory-site-map/factory-site-map.component.ts
TypeScript
FunctionDeclaration
export function optional<RT extends Any>(type: RT, name?: string): OptionalTypeC<RT> { return new OptionalTypeC(type, name) }
AelasticS/aelastics-types
src/common/Optional.ts
TypeScript
ArrowFunction
(base: Any): string => `optional ${base.name}`
AelasticS/aelastics-types
src/common/Optional.ts
TypeScript
ClassDeclaration
export class OptionalTypeC<T extends TypeC<any>> extends TypeC< TypeOf<T> | undefined, DtoTypeOf<T> | undefined > { public readonly _tag: 'Optional' = 'Optional' public readonly base: T public constructor(base: T, name: string = getOptionalName(base)) { super(name) this.base = base } public val...
AelasticS/aelastics-types
src/common/Optional.ts
TypeScript
MethodDeclaration
public validate(value: TypeOf<T> | undefined, path: Path = []): Result<boolean> { if (typeof value === 'undefined') { return success(true) } else { return this.base.validate(value) } }
AelasticS/aelastics-types
src/common/Optional.ts
TypeScript
MethodDeclaration
fromDTOCyclic(value: any, path: Path, context: ToDtoContext): TypeOf<T> | undefined { if (typeof value === 'undefined') { return undefined } else { return this.base.fromDTOCyclic(value, path, context) } }
AelasticS/aelastics-types
src/common/Optional.ts
TypeScript
MethodDeclaration
toDTOCyclic( input: TypeOf<T> | undefined, path: Path, context: ToDtoContext ): DtoTypeOf<T> | undefined { if (typeof input === 'undefined') { return undefined } else { return this.base.toDTOCyclic(input, path, context) } }
AelasticS/aelastics-types
src/common/Optional.ts
TypeScript
MethodDeclaration
traverseCyclic<R>( instance: TypeOf<T> | undefined, f: TraversalFunc<R>, currentResult: R, role: RoleType, extra: ExtraInfo, context: TraversalContext<R> ): R { return this.base.traverseCyclic( instance, f, currentResult, role, { ...extra, ...{ optional: true...
AelasticS/aelastics-types
src/common/Optional.ts
TypeScript
MethodDeclaration
validateLinks(traversed: Map<Any, Any>): Result<boolean> { traversed.set(this, this) if (traversed.has(this.base)) return success(true) else return this.base.validateLinks(traversed) }
AelasticS/aelastics-types
src/common/Optional.ts
TypeScript
MethodDeclaration
defaultValue(): any { return undefined }
AelasticS/aelastics-types
src/common/Optional.ts
TypeScript
FunctionDeclaration
export function generateUniformsSync(group: UniformGroup, uniformData: Dict<any>): UniformsSyncCallback { const funcFragments = [` var v = null; var cv = null var t = 0; var gl = renderer.gl `]; for (const i in group.uniforms) { const data = uniformData[i]; ...
06wj/pixi.js
packages/core/src/shader/utils/generateUniformsSync.ts
TypeScript
TypeAliasDeclaration
export type UniformsSyncCallback = (...args: any[]) => void;
06wj/pixi.js
packages/core/src/shader/utils/generateUniformsSync.ts
TypeScript
ArrowFunction
() => { return ( <Wrapper as="main"> <section> <Title>Editable Input</Title> <Paragraph>Renders text that can be edited in place by clicking on it.</Paragraph> </section> <section> <SubTitle>Usage</SubTitle> <Usage>{"import { EditableInput } from '@binarycapsule...
jcmnunes/ui-capsules
src/demos/EditableInput/EditableInput.view.tsx
TypeScript
ClassDeclaration
/** * This Error is thrown when there's an error that happens when the networking is being initialized. * It is thrown when an error occurs when trying to instantiate a PathRouterNode. */ export class PathRouterInstantiationError extends LoggableError { public constructor(message: string, path: string, parent?:...
magieno/pristine-ts
packages/networking/src/errors/path-router-instantiation.error.ts
TypeScript
ArrowFunction
() => <Home />
lekhanhsinh/sem4
src/front-end-web/src/components/routes.tsx
TypeScript
ArrowFunction
() => <About />
lekhanhsinh/sem4
src/front-end-web/src/components/routes.tsx
TypeScript
ArrowFunction
() => <Contact />
lekhanhsinh/sem4
src/front-end-web/src/components/routes.tsx
TypeScript
ArrowFunction
() => <Login />
lekhanhsinh/sem4
src/front-end-web/src/components/routes.tsx
TypeScript
ArrowFunction
() => <Register />
lekhanhsinh/sem4
src/front-end-web/src/components/routes.tsx
TypeScript
ArrowFunction
() => <Folder />,
lekhanhsinh/sem4
src/front-end-web/src/components/routes.tsx
TypeScript
ArrowFunction
() => <User />,
lekhanhsinh/sem4
src/front-end-web/src/components/routes.tsx
TypeScript
ArrowFunction
() => <Cart />,
lekhanhsinh/sem4
src/front-end-web/src/components/routes.tsx
TypeScript
ArrowFunction
() => <NotFound />
lekhanhsinh/sem4
src/front-end-web/src/components/routes.tsx
TypeScript
ClassDeclaration
@Component({ selector: 'app-sidebar', templateUrl: './sidebar.component.html', styleUrls: ['./sidebar.component.scss'] }) export class SidebarComponent implements OnInit { menuItems: any[]; constructor() { } ngOnInit() { this.menuItems = ROUTES.filter(menuItem => menuItem); } isMobileMenu() { ...
TheJacksonLaboratory/PhenopacketLab
frontend/src/app/component/sidebar/sidebar.component.ts
TypeScript
FunctionDeclaration
/** * Merge two buildspecs into a new BuildSpec * * NOTE: will currently only merge commands, not artifact * declarations, environment variables, secrets, or any * other configuration elements. * * Internal for now because it's not complete/good enough * to expose on the objects directly, but we need to it to ...
37108/aws-cdk
packages/@aws-cdk/aws-codebuild/lib/build-spec.ts
TypeScript
FunctionDeclaration
/** * Extend buildSpec phases with the contents of another one */ function copyCommands(buildSpec: any, extend: any): any { if (buildSpec.version === '0.1') { throw new Error('Cannot extend buildspec at version "0.1". Set the version to "0.2" or higher instead.'); } const ret = Object.assign({}, buildSpec)...
37108/aws-cdk
packages/@aws-cdk/aws-codebuild/lib/build-spec.ts
TypeScript
ArrowFunction
(ctx: IResolveContext) => Stack.of(ctx.scope).toJsonString(this.spec, 2)
37108/aws-cdk
packages/@aws-cdk/aws-codebuild/lib/build-spec.ts
TypeScript
ClassDeclaration
/** * BuildSpec for CodeBuild projects */ export abstract class BuildSpec { public static fromObject(value: {[key: string]: any}): BuildSpec { return new ObjectBuildSpec(value); } /** * Use a file from the source as buildspec * * Use this if you want to use a file different from 'buildspec.yml'` ...
37108/aws-cdk
packages/@aws-cdk/aws-codebuild/lib/build-spec.ts
TypeScript
ClassDeclaration
/** * BuildSpec that just returns the input unchanged */ class FilenameBuildSpec extends BuildSpec { public readonly isImmediate: boolean = false; constructor(private readonly filename: string) { super(); } public toBuildSpec(): string { return this.filename; } public toString() { return `<...
37108/aws-cdk
packages/@aws-cdk/aws-codebuild/lib/build-spec.ts
TypeScript
ClassDeclaration
/** * BuildSpec that understands about structure */ class ObjectBuildSpec extends BuildSpec { public readonly isImmediate: boolean = true; constructor(public readonly spec: {[key: string]: any}) { super(); } public toBuildSpec(): string { // We have to pretty-print the buildspec, otherwise // Co...
37108/aws-cdk
packages/@aws-cdk/aws-codebuild/lib/build-spec.ts
TypeScript
MethodDeclaration
public static fromObject(value: {[key: string]: any}): BuildSpec { return new ObjectBuildSpec(value); }
37108/aws-cdk
packages/@aws-cdk/aws-codebuild/lib/build-spec.ts
TypeScript
MethodDeclaration
/** * Use a file from the source as buildspec * * Use this if you want to use a file different from 'buildspec.yml'` */ public static fromSourceFilename(filename: string): BuildSpec { return new FilenameBuildSpec(filename); }
37108/aws-cdk
packages/@aws-cdk/aws-codebuild/lib/build-spec.ts
TypeScript
MethodDeclaration
/** * Render the represented BuildSpec */ public abstract toBuildSpec(): string;
37108/aws-cdk
packages/@aws-cdk/aws-codebuild/lib/build-spec.ts
TypeScript
MethodDeclaration
public toBuildSpec(): string { return this.filename; }
37108/aws-cdk
packages/@aws-cdk/aws-codebuild/lib/build-spec.ts
TypeScript
MethodDeclaration
public toString() { return `<buildspec file: ${this.filename}>`; }
37108/aws-cdk
packages/@aws-cdk/aws-codebuild/lib/build-spec.ts
TypeScript
MethodDeclaration
public toBuildSpec(): string { // We have to pretty-print the buildspec, otherwise // CodeBuild will not recognize it as an inline buildspec. return Lazy.stringValue({ produce: (ctx: IResolveContext) => Stack.of(ctx.scope).toJsonString(this.spec, 2), }); }
37108/aws-cdk
packages/@aws-cdk/aws-codebuild/lib/build-spec.ts
TypeScript
ArrowFunction
() => srcCheckedValuesRef.value.includes(props.value)
2277419213/naive-ui
src/transfer/src/TransferListItem.tsx
TypeScript
ArrowFunction
() => tgtCheckedValuesRef.value.includes(props.value)
2277419213/naive-ui
src/transfer/src/TransferListItem.tsx
TypeScript
ArrowFunction
() => { if (!props.disabled) { handleSrcCheckboxClick(!checkedRef.value, props.value) } }
2277419213/naive-ui
src/transfer/src/TransferListItem.tsx
TypeScript
ArrowFunction
() => { if (!props.disabled) { handleTgtCheckboxClick(!checkedRef.value, props.value) } }
2277419213/naive-ui
src/transfer/src/TransferListItem.tsx
TypeScript
MethodDeclaration
setup (props) { const { source } = props const { mergedClsPrefixRef, mergedThemeRef, srcCheckedValuesRef, tgtCheckedValuesRef, handleSrcCheckboxClick, handleTgtCheckboxClick // eslint-disable-next-line @typescript-eslint/no-non-null-assertion } = inject(transferInj...
2277419213/naive-ui
src/transfer/src/TransferListItem.tsx
TypeScript
MethodDeclaration
render () { const { disabled, mergedTheme, mergedClsPrefix, label, checked, source } = this return ( <div class={[ `${mergedClsPrefix}-transfer-list-item`, disabled && `${mergedClsPrefix}-transfer-list-item--disabled`, source ? `${mergedClsPrefix}-t...
2277419213/naive-ui
src/transfer/src/TransferListItem.tsx
TypeScript
MethodDeclaration
getTitleAttribute(label)
2277419213/naive-ui
src/transfer/src/TransferListItem.tsx
TypeScript
ClassDeclaration
export class FileSaver { public saveJSON(json: string, fileName = 'file.json'): void { const jsonEncoded = window.encodeURIComponent(json); const dataStr = `data:text/json;charset=utf-8,${jsonEncoded}`; const linkElement = document.createElement('a'); linkElement.setAttribute('href', dataStr); ...
dogballs/battle-city
src/core/file/FileSaver.ts
TypeScript
MethodDeclaration
public saveJSON(json: string, fileName = 'file.json'): void { const jsonEncoded = window.encodeURIComponent(json); const dataStr = `data:text/json;charset=utf-8,${jsonEncoded}`; const linkElement = document.createElement('a'); linkElement.setAttribute('href', dataStr); linkElement.setAttribute('d...
dogballs/battle-city
src/core/file/FileSaver.ts
TypeScript
ClassDeclaration
@Module({ imports: [DatabaseModule], providers: [...AccountProvider, AccountService], exports: [AccountService], }) export class AccountModule {}
cl8dep/Surverys
src/database/entities/account/account.module.ts
TypeScript
ClassDeclaration
@Component({ template: ` <div *ngIf="renderValue['pharmacyType']">{{renderValue['pharmacyType']['name']}}</div> <div *ngIf="!renderValue['pharmacyType']">Not Assigned</div> `, }) export class PharmacyTypeRenderComponent implements ViewCell, OnInit { renderValue: any; @Input() value: number; @Input(...
simpleisrael/kodefactory-ui
src/app/@core/lib/PharmacyTypeRenderComponent.ts
TypeScript
MethodDeclaration
ngOnInit() { this.renderValue = this.rowData; }
simpleisrael/kodefactory-ui
src/app/@core/lib/PharmacyTypeRenderComponent.ts
TypeScript
ArrowFunction
() => this.actions$.pipe( ofType(dummyActions.Load), switchMap(() => { return this.dummyService.getDummyData().pipe( map((entity: DummyInterface) => dummyActions.LoadSuccess({ entity }), ), catchError(() => { return of( dummyActions.LoadFail({ errorMessage: 'global...
AanZee/angular-starterkit
src/app/store/dummy/dummy.effects.ts
TypeScript
ArrowFunction
() => { return this.dummyService.getDummyData().pipe( map((entity: DummyInterface) => dummyActions.LoadSuccess({ entity }), ), catchError(() => { return of( dummyActions.LoadFail({ errorMessage: 'global.something-went-wrong', }), ); }), ); }
AanZee/angular-starterkit
src/app/store/dummy/dummy.effects.ts
TypeScript
ArrowFunction
(entity: DummyInterface) => dummyActions.LoadSuccess({ entity })
AanZee/angular-starterkit
src/app/store/dummy/dummy.effects.ts
TypeScript
ArrowFunction
() => { return of( dummyActions.LoadFail({ errorMessage: 'global.something-went-wrong', }), ); }
AanZee/angular-starterkit
src/app/store/dummy/dummy.effects.ts
TypeScript
ClassDeclaration
/** * DummyEffects represents the class being used to trigger all effects used for the NGRX dummy store */ @Injectable() export class DummyEffects { constructor( private readonly actions$: Actions, private readonly dummyService: DummyService, ) {} /** * loadDummy$ Effect will be triggered when action LOAD i...
AanZee/angular-starterkit
src/app/store/dummy/dummy.effects.ts
TypeScript
ArrowFunction
(ids: Key[], context: SchemaTypes["Context"]) => getDataloader(context).loadMany(ids)
P4sca1/pothos
packages/deno/packages/plugin-dataloader/schema-builder.ts
TypeScript
ArrowFunction
(nodeConfig) => { this.objectField(ref, "id", (t) => (t as unknown as { globalID: (options: Record<string, unknown>) => FieldRef<unknown>; }).globalID({ ...options.id, nullable: false, args: {}, resolve: async (parent: Shape, args: object, con...
P4sca1/pothos
packages/deno/packages/plugin-dataloader/schema-builder.ts
TypeScript
ArrowFunction
(t) => (t as unknown as { globalID: (options: Record<string, unknown>) => FieldRef<unknown>; }).globalID({ ...options.id, nullable: false, args: {}, resolve: async (parent: Shape, args: object, context: object, info: GraphQLResolveInfo) => ({ ...
P4sca1/pothos
packages/deno/packages/plugin-dataloader/schema-builder.ts
TypeScript
ArrowFunction
async (parent: Shape, args: object, context: object, info: GraphQLResolveInfo) => ({ type: nodeConfig.name, id: await options.id.resolve(parent, args, context, info), })
P4sca1/pothos
packages/deno/packages/plugin-dataloader/schema-builder.ts
TypeScript
FunctionDeclaration
/** * This sample demonstrates how to Retrieves information about a gallery image definition. * * @summary Retrieves information about a gallery image definition. * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/gallery/GetAGalleryImage.json */ async functio...
MaryGao/autorest.typescript
test/smoke/generated/compute-resource-manager/samples-dev/galleryImagesGetSample.ts
TypeScript