type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
MethodDeclaration
ngOnDestroy() { this._contentMarginChanges.complete(); this._doCheckSubject.complete(); this._destroyed.next(); this._destroyed.complete(); }
1995tony/components
src/material/sidenav/drawer.ts
TypeScript
MethodDeclaration
/** Calls `open` of both start and end drawers */ open(): void { this._drawers.forEach(drawer => drawer.open()); }
1995tony/components
src/material/sidenav/drawer.ts
TypeScript
MethodDeclaration
/** Calls `close` of both start and end drawers */ close(): void { this._drawers.forEach(drawer => drawer.close()); }
1995tony/components
src/material/sidenav/drawer.ts
TypeScript
MethodDeclaration
/** * Recalculates and updates the inline styles for the content. Note that this should be used * sparingly, because it causes a reflow. */ updateContentMargins() { // 1. For drawers in `over` mode, they don't affect the content. // 2. For drawers in `side` mode they should shrink the content. We do th...
1995tony/components
src/material/sidenav/drawer.ts
TypeScript
MethodDeclaration
ngDoCheck() { // If users opted into autosizing, do a check every change detection cycle. if (this._autosize && this._isPushed()) { // Run outside the NgZone, otherwise the debouncer will throw us into an infinite loop. this._ngZone.runOutsideAngular(() => this._doCheckSubject.next()); } }
1995tony/components
src/material/sidenav/drawer.ts
TypeScript
MethodDeclaration
/** * Subscribes to drawer events in order to set a class on the main container element when the * drawer is open and the backdrop is visible. This ensures any overflow on the container element * is properly hidden. */ private _watchDrawerToggle(drawer: MatDrawer): void { drawer._animationStarted.pipe( ...
1995tony/components
src/material/sidenav/drawer.ts
TypeScript
MethodDeclaration
/** * Subscribes to drawer onPositionChanged event in order to * re-validate drawers when the position changes. */ private _watchDrawerPosition(drawer: MatDrawer): void { if (!drawer) { return; } // NOTE: We need to wait for the microtask queue to be empty before validating, // since both...
1995tony/components
src/material/sidenav/drawer.ts
TypeScript
MethodDeclaration
/** Subscribes to changes in drawer mode so we can run change detection. */ private _watchDrawerMode(drawer: MatDrawer): void { if (drawer) { drawer._modeChanged.pipe(takeUntil(merge(this._drawers.changes, this._destroyed))) .subscribe(() => { this.updateContentMargins(); this._cha...
1995tony/components
src/material/sidenav/drawer.ts
TypeScript
MethodDeclaration
/** Toggles the 'mat-drawer-opened' class on the main 'mat-drawer-container' element. */ private _setContainerClass(isAdd: boolean): void { const classList = this._element.nativeElement.classList; const className = 'mat-drawer-container-has-open'; if (isAdd) { classList.add(className); } else { ...
1995tony/components
src/material/sidenav/drawer.ts
TypeScript
MethodDeclaration
/** Validate the state of the drawer children components. */ private _validateDrawers() { this._start = this._end = null; // Ensure that we have at most one start and one end drawer. this._drawers.forEach(drawer => { if (drawer.position == 'end') { if (this._end != null) { throwMatD...
1995tony/components
src/material/sidenav/drawer.ts
TypeScript
MethodDeclaration
/** Whether the container is being pushed to the side by one of the drawers. */ private _isPushed() { return (this._isDrawerOpen(this._start) && this._start.mode != 'over') || (this._isDrawerOpen(this._end) && this._end.mode != 'over'); }
1995tony/components
src/material/sidenav/drawer.ts
TypeScript
MethodDeclaration
_onBackdropClicked() { this.backdropClick.emit(); this._closeModalDrawer(); }
1995tony/components
src/material/sidenav/drawer.ts
TypeScript
MethodDeclaration
_closeModalDrawer() { // Close all open drawers where closing is not disabled and the mode is not `side`. [this._start, this._end] .filter(drawer => drawer && !drawer.disableClose && this._canHaveBackdrop(drawer)) .forEach(drawer => drawer!.close()); }
1995tony/components
src/material/sidenav/drawer.ts
TypeScript
MethodDeclaration
_isShowingBackdrop(): boolean { return (this._isDrawerOpen(this._start) && this._canHaveBackdrop(this._start)) || (this._isDrawerOpen(this._end) && this._canHaveBackdrop(this._end)); }
1995tony/components
src/material/sidenav/drawer.ts
TypeScript
MethodDeclaration
private _canHaveBackdrop(drawer: MatDrawer): boolean { return drawer.mode !== 'side' || !!this._backdropOverride; }
1995tony/components
src/material/sidenav/drawer.ts
TypeScript
MethodDeclaration
private _isDrawerOpen(drawer: MatDrawer | null): drawer is MatDrawer { return drawer != null && drawer.opened; }
1995tony/components
src/material/sidenav/drawer.ts
TypeScript
ArrowFunction
({ path, type, value, originalValue }) => { const castMsg = originalValue != null && originalValue !== value ? ` (cast from the value \`${printValue(originalValue, true)}\`).` : '.'; return type !== 'mixed' ? `${path} must be a \`${type}\` type, ` + `but the final value w...
rvpanoz/yup
src/locale.ts
TypeScript
InterfaceDeclaration
export interface MixedLocale { default?: Message; required?: Message; oneOf?: Message<{ values: any }>; notOneOf?: Message<{ values: any }>; notNull?: Message; notType?: Message; defined?: Message; }
rvpanoz/yup
src/locale.ts
TypeScript
InterfaceDeclaration
export interface StringLocale { length?: Message<{ length: number }>; min?: Message<{ min: number }>; max?: Message<{ max: number }>; matches?: Message<{ regex: RegExp }>; email?: Message<{ regex: RegExp }>; url?: Message<{ regex: RegExp }>; uuid?: Message<{ regex: RegExp }>; trim?: Message; lowercas...
rvpanoz/yup
src/locale.ts
TypeScript
InterfaceDeclaration
export interface NumberLocale { min?: Message<{ min: number }>; max?: Message<{ max: number }>; lessThan?: Message<{ less: number }>; moreThan?: Message<{ more: number }>; positive?: Message<{ more: number }>; negative?: Message<{ less: number }>; integer?: Message; }
rvpanoz/yup
src/locale.ts
TypeScript
InterfaceDeclaration
export interface DateLocale { min?: Message<{ min: Date | string }>; max?: Message<{ max: Date | string }>; }
rvpanoz/yup
src/locale.ts
TypeScript
InterfaceDeclaration
export interface ObjectLocale { noUnknown?: Message; }
rvpanoz/yup
src/locale.ts
TypeScript
InterfaceDeclaration
export interface ArrayLocale { length?: Message<{ length: number }>; min?: Message<{ min: number }>; max?: Message<{ max: number }>; }
rvpanoz/yup
src/locale.ts
TypeScript
InterfaceDeclaration
export interface BooleanLocale { isValue?: Message; }
rvpanoz/yup
src/locale.ts
TypeScript
InterfaceDeclaration
export interface LocaleObject { mixed?: MixedLocale; string?: StringLocale; number?: NumberLocale; date?: DateLocale; boolean?: BooleanLocale; object?: ObjectLocale; array?: ArrayLocale; }
rvpanoz/yup
src/locale.ts
TypeScript
ArrowFunction
() => { this.setState({ width: this.state.width + 100 }); }
aatdev/reactdatagrid
community-edition/packages/react-virtual-scroll-container-pro/examples/index.tsx
TypeScript
ArrowFunction
() => { this.setState({ height: this.state.height + 1000 }); }
aatdev/reactdatagrid
community-edition/packages/react-virtual-scroll-container-pro/examples/index.tsx
TypeScript
ArrowFunction
size => { console.log('resize', size, '!!!'); }
aatdev/reactdatagrid
community-edition/packages/react-virtual-scroll-container-pro/examples/index.tsx
TypeScript
ArrowFunction
scrolls => { console.log(scrolls); }
aatdev/reactdatagrid
community-edition/packages/react-virtual-scroll-container-pro/examples/index.tsx
TypeScript
ArrowFunction
() => { console.log('scrollleft max'); }
aatdev/reactdatagrid
community-edition/packages/react-virtual-scroll-container-pro/examples/index.tsx
TypeScript
ArrowFunction
() => { this.setState({ nativeScroll: !this.state.nativeScroll, }); }
aatdev/reactdatagrid
community-edition/packages/react-virtual-scroll-container-pro/examples/index.tsx
TypeScript
ArrowFunction
() => { this.setState({ rtl: !this.state.rtl, }); }
aatdev/reactdatagrid
community-edition/packages/react-virtual-scroll-container-pro/examples/index.tsx
TypeScript
ClassDeclaration
class App extends React.Component { constructor(props) { super(props); this.state = { width: 1000, height: 2300, nativeScroll: false, rtl: true, }; } inc = () => { this.setState({ width: this.state.width + 100 }); }; incHeight = () => { this.setState({ height: t...
aatdev/reactdatagrid
community-edition/packages/react-virtual-scroll-container-pro/examples/index.tsx
TypeScript
MethodDeclaration
render() { const ScrollerFactory = this.state.nativeScroll ? NativeScrollContainer : VirtualScrollContainer; return ( <div style={{ position: 'absolute', top: 40 }}
aatdev/reactdatagrid
community-edition/packages/react-virtual-scroll-container-pro/examples/index.tsx
TypeScript
ClassDeclaration
class OctreeBlock { subMeshes: Mesh[]; meshes: Mesh[]; _capacity: number; _minPoint: Vector3; _maxPoint: Vector3; _boundingVector: Vector3[]; constructor(minPoint: Vector3, maxPoint: Vector3, capacity: number) addMesh(mesh: Mesh): void; addEntri...
gwenael-hagenmuller/Babylon.js
Typescript/Culling/Octrees/babylon.octreeBlock.d.ts
TypeScript
MethodDeclaration
addMesh(mesh: Mesh): void;
gwenael-hagenmuller/Babylon.js
Typescript/Culling/Octrees/babylon.octreeBlock.d.ts
TypeScript
MethodDeclaration
addEntries(meshes: Mesh[]): void;
gwenael-hagenmuller/Babylon.js
Typescript/Culling/Octrees/babylon.octreeBlock.d.ts
TypeScript
MethodDeclaration
select(frustrumPlanes: Plane[], selection: Tools.SmartArray): void;
gwenael-hagenmuller/Babylon.js
Typescript/Culling/Octrees/babylon.octreeBlock.d.ts
TypeScript
ClassDeclaration
export class AddPlatformNameService { constructor(private readonly _performerRepository: PerformerRepository) {} async run( id: string, addPlatformNameCommand: AddPlatformNameCommand, ): Promise<Performer> { const updatedPerformer = await this._performerRepository.addPlatformName( id, ad...
davidecb/csm-server
src/domain/performer/service/add-platform-name.service.ts
TypeScript
MethodDeclaration
async run( id: string, addPlatformNameCommand: AddPlatformNameCommand, ): Promise<Performer> { const updatedPerformer = await this._performerRepository.addPlatformName( id, addPlatformNameCommand, ); if (updatedPerformer) { return updatedPerformer; } throw new Unexisten...
davidecb/csm-server
src/domain/performer/service/add-platform-name.service.ts
TypeScript
ClassDeclaration
@NgModule({ imports: [ BrowserModule, AngularFireModule.initializeApp( firebaseConfig ) ], declarations: [AppComponent], bootstrap: [AppComponent] }) export class AppModule{}
madgoods/magma
src/app/app.module.ts
TypeScript
ArrowFunction
(item) => item.name !== 'angular-app'
BatuhanW/nest-cli
lib/schematics/nest.collection.ts
TypeScript
ArrowFunction
(s) => s.name === name || s.alias === name
BatuhanW/nest-cli
lib/schematics/nest.collection.ts
TypeScript
ClassDeclaration
export class NestCollection extends AbstractCollection { private static schematics: Schematic[] = [ { name: 'application', alias: 'application', description: 'Generate a new application workspace', }, { name: 'angular-app', alias: 'ng-app', description: '', }, ...
BatuhanW/nest-cli
lib/schematics/nest.collection.ts
TypeScript
InterfaceDeclaration
export interface Schematic { name: string; alias: string; description: string; }
BatuhanW/nest-cli
lib/schematics/nest.collection.ts
TypeScript
MethodDeclaration
public async execute(name: string, options: SchematicOption[]) { const schematic: string = this.validate(name); await super.execute(schematic, options); }
BatuhanW/nest-cli
lib/schematics/nest.collection.ts
TypeScript
MethodDeclaration
public static getSchematics(): Schematic[] { return NestCollection.schematics.filter( (item) => item.name !== 'angular-app', ); }
BatuhanW/nest-cli
lib/schematics/nest.collection.ts
TypeScript
MethodDeclaration
private validate(name: string) { const schematic = NestCollection.schematics.find( (s) => s.name === name || s.alias === name, ); if (schematic === undefined || schematic === null) { throw new Error( `Invalid schematic "${name}". Please, ensure that "${name}" exists in this collection....
BatuhanW/nest-cli
lib/schematics/nest.collection.ts
TypeScript
ArrowFunction
() => { it('should instantiate', () => { const kafkaStream = Observable.fromObservable(Observable.from([]), ''); const message = new KafkaMessageStream(kafkaStream); expect(message).toBeDefined(); }); it('should instantiate filtered stream', () => { const kafkaStream = Obs...
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
() => { const kafkaStream = Observable.fromObservable(Observable.from([]), ''); const message = new KafkaMessageStream(kafkaStream); expect(message).toBeDefined(); }
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
() => { const kafkaStream = Observable.fromObservable(Observable.from([]), ''); const messageStream = new KafkaMessageStream(kafkaStream); const stream = messageStream.filterType(typesMap, typesMap.messages); expect(stream).toBeDefined(); }
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
(done) => { expect.assertions(1); const kafkaMessages: IKafkaMessage[] = [ { protocol: 'drone_delivery', type: 'need', contents: '{}' }, ]; const kafkaStream = Observable.fromObservable(Observable.from(kafkaMessages), ''); const messageStream = new KafkaMessageStream...
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
(need) => { expect(need).toBeDefined(); }
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
(error) => { fail(error); done(); }
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
() => { done(); }
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
(done) => { const kafkaMessages: IKafkaMessage[] = [ { protocol: 'drone_delivery', type: 'need', contents: '{}' }, ]; const kafkaStream = Observable.fromObservable(Observable.from(kafkaMessages), ''); const messageStream = new KafkaMessageStream(kafkaStream); const s...
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
(need) => { fail('No message should pass'); done(); }
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
(done) => { expect.assertions(1); const kafkaMessages: IKafkaMessage[] = [ { protocol: 'drone_delivery', type: 'not_need', contents: '{"id":"123", "protocol":"DroneDelivery", "type":"Bid", "ttl":"3000", "startAt":1}' }, { protocol: 'drone_delivery', type: 'need', con...
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
(need) => { passedMessages.push(need); }
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
(error) => { fail(error); }
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
() => { const formattedNeedParams = new DroneDeliveryNeedParams(); formattedNeedParams.deserialize(JSON.parse('{"id":"123", "protocol":"DroneDelivery", "type":"Bid", "ttl":3000, "startAt":1}')); expect(passedMessages).toMatchObject([formattedNeedParams]); ...
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
(done) => { // expect.assertions(1); const kafkaMessages: IKafkaMessage[] = [ { protocol: 'drone_delivery', type: 'need', contents: '{"id":"123", "protocol":"DroneDelivery", "type":"Bid", "ttl":3000, "startAt":1}' }, { protocol: 'drone_delivery', type: 'not_need', co...
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
() => { const formattedNeedParams = new DroneDeliveryNeedParams(); formattedNeedParams.deserialize(JSON.parse('{"id":"123", "protocol":"DroneDelivery", "type":"Bid", "ttl":3000, "startAt":1}')); expect(passedMessages).toEqual([formattedNeedParams]); done(...
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
(done) => { expect.assertions(2); const kafkaMessages: IKafkaMessage[] = [ { protocol: 'drone_delivery', type: 'need', contents: '{"id":"123", "protocol":"DroneDelivery", "type":"Bid", "ttl":3000, "startAt":1}' }, { protocol: 'drone_delivery', type: 'mission', contents: ...
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
() => { if (doneMissions && doneNeeds) { const formattedNeedParams1 = new DroneDeliveryNeedParams(); formattedNeedParams1.deserialize(JSON.parse(kafkaMessages[0].contents)); const formattedNeedParams2 = new DroneDeliveryNeedParams(); formatted...
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
(need) => { passedNeeds.push(need); }
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
() => { doneNeeds = true; test(); }
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
(bid) => { passedMissions.push(bid); }
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
ArrowFunction
() => { doneMissions = true; test(); }
aeidelos/dav-js
src/KafkaMessageStream.test.ts
TypeScript
FunctionDeclaration
async function expectItCreatesPost( executorRole: UserRole, testServer: TestServer, postRepository: PostRepositoryPort, userFixture: UserFixture, mediaFixture: MediaFixture, options?: {withImage?: boolean} ): Promise<void> { const executor: User = await userFixture.insertUser({role: executorRole, e...
LordCrainer/lntv-main-app-2
test/e2e/tests/post/PostCreate.spec.ts
TypeScript
ArrowFunction
() => { let testServer: TestServer; let userFixture: UserFixture; let mediaFixture: MediaFixture; let postRepository: PostRepositoryPort; beforeAll(async () => { testServer = await TestServer.new(); userFixture = UserFixture.new(testServer.testingModule); mediaFixture = MediaFixt...
LordCrainer/lntv-main-app-2
test/e2e/tests/post/PostCreate.spec.ts
TypeScript
ArrowFunction
async () => { testServer = await TestServer.new(); userFixture = UserFixture.new(testServer.testingModule); mediaFixture = MediaFixture.new(testServer.testingModule); postRepository = testServer.testingModule.get(PostDITokens.PostRepository); await testServer.serverApplication.init(); ...
LordCrainer/lntv-main-app-2
test/e2e/tests/post/PostCreate.spec.ts
TypeScript
ArrowFunction
async () => { if (testServer) { await testServer.serverApplication.close(); } }
LordCrainer/lntv-main-app-2
test/e2e/tests/post/PostCreate.spec.ts
TypeScript
ArrowFunction
() => { test('When author creates post, expect it returns new post with image', async () => { await expectItCreatesPost(UserRole.AUTHOR, testServer, postRepository, userFixture, mediaFixture, {withImage: true}); }); test('When author creates post, expect it returns new post without image', as...
LordCrainer/lntv-main-app-2
test/e2e/tests/post/PostCreate.spec.ts
TypeScript
ArrowFunction
async () => { await expectItCreatesPost(UserRole.AUTHOR, testServer, postRepository, userFixture, mediaFixture, {withImage: true}); }
LordCrainer/lntv-main-app-2
test/e2e/tests/post/PostCreate.spec.ts
TypeScript
ArrowFunction
async () => { await expectItCreatesPost(UserRole.AUTHOR, testServer, postRepository, userFixture, mediaFixture); }
LordCrainer/lntv-main-app-2
test/e2e/tests/post/PostCreate.spec.ts
TypeScript
ArrowFunction
async () => { const executor: User = await userFixture.insertUser({role: UserRole.ADMIN, email: `${v4()}@email.com`, password: v4()}); const auth: {accessToken: string} = await AuthFixture.loginUser({id: executor.getId()}); const response: supertest.Response = await supertest(testServer.serverApplic...
LordCrainer/lntv-main-app-2
test/e2e/tests/post/PostCreate.spec.ts
TypeScript
ArrowFunction
async () => { const executor: User = await userFixture.insertUser({role: UserRole.GUEST, email: `${v4()}@email.com`, password: v4()}); const {accessToken} = await AuthFixture.loginUser({id: executor.getId()}); const response: supertest.Response = await supertest(testServer.serverApplication.getH...
LordCrainer/lntv-main-app-2
test/e2e/tests/post/PostCreate.spec.ts
TypeScript
ArrowFunction
async () => { await AuthExpect.unauthorizedError({method: 'post', path: '/posts'}, testServer); }
LordCrainer/lntv-main-app-2
test/e2e/tests/post/PostCreate.spec.ts
TypeScript
ArrowFunction
async () => { await AuthExpect.unauthorizedError({method: 'post', path: '/posts'}, testServer, v4()); }
LordCrainer/lntv-main-app-2
test/e2e/tests/post/PostCreate.spec.ts
TypeScript
ArrowFunction
async () => { const executor: User = await userFixture.insertUser({role: UserRole.AUTHOR, email: `${v4()}@email.com`, password: v4()}); const {accessToken} = await AuthFixture.loginUser({id: executor.getId()}); const response: supertest.Response = await supertest(testServer.serverApplication.g...
LordCrainer/lntv-main-app-2
test/e2e/tests/post/PostCreate.spec.ts
TypeScript
ArrowFunction
(error: Record<string, unknown>) => error.property
LordCrainer/lntv-main-app-2
test/e2e/tests/post/PostCreate.spec.ts
TypeScript
ArrowFunction
async () => { const executor: User = await userFixture.insertUser({role: UserRole.AUTHOR, email: `${v4()}@email.com`, password: v4()}); const {accessToken} = await AuthFixture.loginUser({id: executor.getId()}); const response: supertest.Response = await supertest(testServer.serverApplication.g...
LordCrainer/lntv-main-app-2
test/e2e/tests/post/PostCreate.spec.ts
TypeScript
ArrowFunction
({ title, presence, ...rest }) => { const { colorModeValue } = useDarkMode(); const { username } = useCurrentUser(); return ( <Stack role="group" bg={colorModeValue('gray.200', 'gray.600')} p={2} spacing={3} borderRadius="md" _hover={{ cursor: 'pointer', ...
FlorianGille/standup-app
src/app/offices/_partials/OfficeSection.tsx
TypeScript
ArrowFunction
(person) => ( <PersonTag bg={ username === person?.name ? 'yellow.500' : colorModeValue('gray.400', 'gray.300')
FlorianGille/standup-app
src/app/offices/_partials/OfficeSection.tsx
TypeScript
InterfaceDeclaration
interface OfficeSectionProps extends StackProps { title: string; presence: any[]; }
FlorianGille/standup-app
src/app/offices/_partials/OfficeSection.tsx
TypeScript
MethodDeclaration
colorModeValue('gray.200', 'gray.600')
FlorianGille/standup-app
src/app/offices/_partials/OfficeSection.tsx
TypeScript
MethodDeclaration
sort(
FlorianGille/standup-app
src/app/offices/_partials/OfficeSection.tsx
TypeScript
MethodDeclaration
colorModeValue('gray.300', 'gray.700')
FlorianGille/standup-app
src/app/offices/_partials/OfficeSection.tsx
TypeScript
ClassDeclaration
export class OrderedDataStore<DataType> extends GenericDataStore<DataType> { constructor( manager: DataStoreManager, placeId: number, name: string, scope?: string, legacy?: boolean ) { super( manager, "OrderedDataStore", placeId, name, scope || null, lega...
bloxyjs/core
src/client/lib/DataStoreManager/structures/OrderedDataStore.ts
TypeScript
TypeAliasDeclaration
export type GetSortedUrlOptions = { ascending?: boolean; pageSize?: number; minValue?: number; maxValue?: number; startKey?: string; };
bloxyjs/core
src/client/lib/DataStoreManager/structures/OrderedDataStore.ts
TypeScript
TypeAliasDeclaration
export type OrderedDataStoreResultType = { data: { Entries: { Target: string; Value: number; }[]; ExclusiveStartKey: string | null; }; };
bloxyjs/core
src/client/lib/DataStoreManager/structures/OrderedDataStore.ts
TypeScript
MethodDeclaration
public async getSortedAsync( options: GetSortedUrlOptions ): Promise<OrderedDataStorePage<DataType>> { this.performPreflightChecks({}); const createdRequest = new DataStoreHttpRequest(this.manager, { url: this.buildGetSortedUrl(options), placeId: this.placeId, data: "", requestTyp...
bloxyjs/core
src/client/lib/DataStoreManager/structures/OrderedDataStore.ts
TypeScript
MethodDeclaration
private buildGetSortedUrl(options: GetSortedUrlOptions) { const encodedQueryString = this.createQueryString({ key: this.safeEncodeValue(this.name), pageSize: options.pageSize || DataStoreManagerConstants.DFInt.DataStoreMaxPageSize, ascending: options.ascending ? "True" : "False", ...
bloxyjs/core
src/client/lib/DataStoreManager/structures/OrderedDataStore.ts
TypeScript
FunctionDeclaration
export default function Trim(scheme : string) : string { return PrefixRemove(scheme, '?'); }
dikac/lits
src/uri/query/string/trim.ts
TypeScript
ClassDeclaration
@Injectable() export class JwtStrategy extends PassportStrategy(Strategy) { constructor(private readonly prismaService: PrismaService) { super({ jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(), ignoreExpiration: false, secretOrKey: process.env.JWT_SECRET_KEY, }); } async valid...
ultrasad/nestjs
src/auth/jwt.strategy.ts
TypeScript
MethodDeclaration
async validate(payload: any) { const user = await this.prismaService.user.findUnique({ where: { id: payload.userId }, include: { Staff: { include: { Position: true } } }, }); if (!user) { throw new NotFoundException('User not found'); } return { id: user.id, email: u...
ultrasad/nestjs
src/auth/jwt.strategy.ts
TypeScript
ArrowFunction
() => helper.createDatabase(NAME)
ailytic/sql
test/example.test.ts
TypeScript
ArrowFunction
() => helper.dropDatabase(NAME)
ailytic/sql
test/example.test.ts
TypeScript
ArrowFunction
async done => { const { User, OrderItem, Category } = helper .connectToDatabase(NAME) .getModels(); { const users = await User.table.select('*'); const fields = User.fields.filter(field => field instanceof SimpleField); expect(Object.keys(users[0]).length).toBe(fields.length); } { con...
ailytic/sql
test/example.test.ts
TypeScript