type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
MethodDeclaration
// print option and its current value on screen // applies special styling whener or not the option is selected private printOption (id: GameOption, name: string, value: number | string): void { term.styleReset() if (this.curGameOption === id) { term('\n ').bgBrightBlue(name).styleReset(': ') } else ...
TheEmrio/nim-game
src/Interface.ts
TypeScript
MethodDeclaration
// changes a numeric option like stack count or max sticks per turn // left arrow to increment by one // right arrow to decrement by one private updateNumericOption (action: Symbol): void { const delta = action === GameInput.MORE ? 1 : -1 if (this.curGameOption === GameOption.STACKS_COUNT) { const newVal...
TheEmrio/nim-game
src/Interface.ts
TypeScript
MethodDeclaration
// draws the options UI to let users set player names and other options for the game private async drawOptionsScreen (): Promise<void> { this.reset() term.bold(' * Game Options *') term.styleReset('\n Use UP and DOWN to move between options, RIGHT and LEFT to change numeric values, and regular keyboard (A-...
TheEmrio/nim-game
src/Interface.ts
TypeScript
MethodDeclaration
// print UI during game private async gameTurn (): Promise<void> { this.reset() const { board, waitingFor: player } = this.game.getGameState() this.selectedStickCount = Math.min(board[this.selectedStack], this.selectedStickCount) term(' Select the stack with UP/DOWN and select the number of sticks to...
TheEmrio/nim-game
src/Interface.ts
TypeScript
MethodDeclaration
// prints the summary UI private async summary (): Promise<void> { this.reset() const winner = this.game.getWinner() term(' Winner: ').bold.yellow(winner) term('\n\n Press Ctrl+C to exit or any other key to play again') await this.getGameInput() this.step = UIStep.OPTIONS }
TheEmrio/nim-game
src/Interface.ts
TypeScript
MethodDeclaration
// main draw routine, called at most every `this.clockSpeed` ms private async draw (): Promise<void> { try { switch (this.step) { case UIStep.TITLE_SCREEN: await this.printTitleScreen() break case UIStep.OPTIONS: await this.drawOptionsScreen() break ...
TheEmrio/nim-game
src/Interface.ts
TypeScript
MethodDeclaration
start (): void { this.draw() }
TheEmrio/nim-game
src/Interface.ts
TypeScript
ArrowFunction
async (request, config) => { const validator = new Validator(request, customParams) if (validator.error) throw validator.error const jobRunID = validator.validated.id const eventId = validator.validated.data.eventId const url = `/events/${eventId}` const reqConfig = { ...config.api, headers: { ...
vnavascues/external-adapters-js
packages/sources/therundown/src/endpoint/event.ts
TypeScript
ArrowFunction
() => { const dispatch = useDispatch(); const [confirmClearDialogOpen, setConfirmClearDialogOpen] = useState(false); const ideas = useSelector( (state: RootState) => state.games.startStopContinue.ideas ); const exportIdeas = () => { const fileName = "startstopcontinue.txt"; const text = getCateg...
random82/DigitalIcebreakers
DigitalIcebreakers/ClientApp/src/games/StartStopContinue/Menu.tsx
TypeScript
ArrowFunction
(state: RootState) => state.games.startStopContinue.ideas
random82/DigitalIcebreakers
DigitalIcebreakers/ClientApp/src/games/StartStopContinue/Menu.tsx
TypeScript
ArrowFunction
() => { const fileName = "startstopcontinue.txt"; const text = getCategories() .map( (category) => `* ${category}\n` + ideasByCategory(ideas, category) .map((idea) => ` * ${idea.payload.message}\n`) .join("") ) .join(""); const fileTo...
random82/DigitalIcebreakers
DigitalIcebreakers/ClientApp/src/games/StartStopContinue/Menu.tsx
TypeScript
ArrowFunction
(category) => `* ${category}\n` + ideasByCategory(ideas, category) .map((idea) => ` * ${idea.payload.message}\n`) .join("")
random82/DigitalIcebreakers
DigitalIcebreakers/ClientApp/src/games/StartStopContinue/Menu.tsx
TypeScript
ArrowFunction
(idea) => ` * ${idea.payload.message}\n`
random82/DigitalIcebreakers
DigitalIcebreakers/ClientApp/src/games/StartStopContinue/Menu.tsx
TypeScript
ArrowFunction
() => setConfirmClearDialogOpen(true)
random82/DigitalIcebreakers
DigitalIcebreakers/ClientApp/src/games/StartStopContinue/Menu.tsx
TypeScript
ArrowFunction
(jsonValue) => V1QueueFromJSON(jsonValue)
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
ArrowFunction
(jsonValue) => V1ListQueuesResponseFromJSON(jsonValue)
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
InterfaceDeclaration
export interface CreateQueueRequest { owner: string; agent: string; body: V1Queue; }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
InterfaceDeclaration
export interface DeleteQueueRequest { owner: string; agent: string; uuid: string; }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
InterfaceDeclaration
export interface GetQueueRequest { owner: string; agent: string; uuid: string; }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
InterfaceDeclaration
export interface ListOrganizationQueueNamesRequest { owner: string; offset?: number; limit?: number; sort?: string; query?: string; }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
InterfaceDeclaration
export interface ListOrganizationQueuesRequest { owner: string; offset?: number; limit?: number; sort?: string; query?: string; }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
InterfaceDeclaration
export interface ListQueueNamesRequest { owner: string; agent: string; offset?: number; limit?: number; sort?: string; query?: string; }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
InterfaceDeclaration
export interface ListQueuesRequest { owner: string; agent: string; offset?: number; limit?: number; sort?: string; query?: string; }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
InterfaceDeclaration
export interface PatchQueueRequest { owner: string; queueAgent: string; queueUuid: string; body: V1Queue; }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
InterfaceDeclaration
export interface UpdateQueueRequest { owner: string; queueAgent: string; queueUuid: string; body: V1Queue; }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * Create queue */ async createQueueRaw(requestParameters: CreateQueueRequest): Promise<runtime.ApiResponse<V1Queue>> { if (requestParameters.owner === null || requestParameters.owner === undefined) { throw new runtime.RequiredError('owner','Required parameter requestParameters.owner wa...
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * Create queue */ async createQueue(requestParameters: CreateQueueRequest): Promise<V1Queue> { const response = await this.createQueueRaw(requestParameters); return await response.value(); }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * Delete queue */ async deleteQueueRaw(requestParameters: DeleteQueueRequest): Promise<runtime.ApiResponse<void>> { if (requestParameters.owner === null || requestParameters.owner === undefined) { throw new runtime.RequiredError('owner','Required parameter requestParameters.owner was n...
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * Delete queue */ async deleteQueue(requestParameters: DeleteQueueRequest): Promise<void> { await this.deleteQueueRaw(requestParameters); }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * Get queue */ async getQueueRaw(requestParameters: GetQueueRequest): Promise<runtime.ApiResponse<V1Queue>> { if (requestParameters.owner === null || requestParameters.owner === undefined) { throw new runtime.RequiredError('owner','Required parameter requestParameters.owner was null or...
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * Get queue */ async getQueue(requestParameters: GetQueueRequest): Promise<V1Queue> { const response = await this.getQueueRaw(requestParameters); return await response.value(); }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * List organization level queues names */ async listOrganizationQueueNamesRaw(requestParameters: ListOrganizationQueueNamesRequest): Promise<runtime.ApiResponse<V1ListQueuesResponse>> { if (requestParameters.owner === null || requestParameters.owner === undefined) { throw new runtime.R...
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * List organization level queues names */ async listOrganizationQueueNames(requestParameters: ListOrganizationQueueNamesRequest): Promise<V1ListQueuesResponse> { const response = await this.listOrganizationQueueNamesRaw(requestParameters); return await response.value(); }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * List organization level queues */ async listOrganizationQueuesRaw(requestParameters: ListOrganizationQueuesRequest): Promise<runtime.ApiResponse<V1ListQueuesResponse>> { if (requestParameters.owner === null || requestParameters.owner === undefined) { throw new runtime.RequiredError('...
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * List organization level queues */ async listOrganizationQueues(requestParameters: ListOrganizationQueuesRequest): Promise<V1ListQueuesResponse> { const response = await this.listOrganizationQueuesRaw(requestParameters); return await response.value(); }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * List queues names */ async listQueueNamesRaw(requestParameters: ListQueueNamesRequest): Promise<runtime.ApiResponse<V1ListQueuesResponse>> { if (requestParameters.owner === null || requestParameters.owner === undefined) { throw new runtime.RequiredError('owner','Required parameter re...
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * List queues names */ async listQueueNames(requestParameters: ListQueueNamesRequest): Promise<V1ListQueuesResponse> { const response = await this.listQueueNamesRaw(requestParameters); return await response.value(); }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * List queues */ async listQueuesRaw(requestParameters: ListQueuesRequest): Promise<runtime.ApiResponse<V1ListQueuesResponse>> { if (requestParameters.owner === null || requestParameters.owner === undefined) { throw new runtime.RequiredError('owner','Required parameter requestParameter...
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * List queues */ async listQueues(requestParameters: ListQueuesRequest): Promise<V1ListQueuesResponse> { const response = await this.listQueuesRaw(requestParameters); return await response.value(); }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * Patch queue */ async patchQueueRaw(requestParameters: PatchQueueRequest): Promise<runtime.ApiResponse<V1Queue>> { if (requestParameters.owner === null || requestParameters.owner === undefined) { throw new runtime.RequiredError('owner','Required parameter requestParameters.owner was n...
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * Patch queue */ async patchQueue(requestParameters: PatchQueueRequest): Promise<V1Queue> { const response = await this.patchQueueRaw(requestParameters); return await response.value(); }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * Update queue */ async updateQueueRaw(requestParameters: UpdateQueueRequest): Promise<runtime.ApiResponse<V1Queue>> { if (requestParameters.owner === null || requestParameters.owner === undefined) { throw new runtime.RequiredError('owner','Required parameter requestParameters.owner wa...
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
MethodDeclaration
/** * Update queue */ async updateQueue(requestParameters: UpdateQueueRequest): Promise<V1Queue> { const response = await this.updateQueueRaw(requestParameters); return await response.value(); }
deeplearning2012/polyaxon
sdks/ts/http_client/v1/src/apis/QueuesV1Api.ts
TypeScript
FunctionDeclaration
async function testPromisify() { const rd = util.promisify(fs.readdir); let listS: string[]; listS = await rd('path'); listS = await rd('path', 'utf8'); listS = await rd('path', null); listS = await rd('path', undefined); listS = await rd('path', { encoding: 'utf8' }); listS = await rd(...
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
() => { }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err, data) => content = data
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err, data) => stringOrBuffer = data
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err, data) => buffer = data
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err: NodeJS.ErrnoException | null, bytesRead: number, buffer: DataView) => { }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err, data) => { if (err && err.errno) { errno = err.errno; } }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err: NodeJS.ErrnoException | null, files: fs.Dirent[]) => { }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err, folder) => { console.log(folder); // Prints: /tmp/foo-itXde2 }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(event, filename) => { console.log(event, filename); }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(current, previous) => { console.log(current, previous); }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err) => { }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(error?: Error | null) => { }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err, linkString) => s = linkString
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err, linkString) => b = linkString
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err, resolvedPath) => s = resolvedPath
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err, resolvedPath) => b = resolvedPath
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err) => console.error(err)
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err, path) => { err; // $ExpectType ErrnoException | null path; // $ExpectType string | undefined }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => { }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
async () => { try { await fs.promises.rmdir('some/test/path'); await fs.promises.rmdir('some/test/path', { maxRetries: 123, retryDelay: 123, recursive: true }); } catch (e) { } try { await fs.promises.rmdir('some/test/file'); await fs.promises.rmdir('some/test/file', { maxR...
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
async (err, dir) => { const dirEnt: fs.Dirent | null = await dir.read(); }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
async () => { // tslint:disable-next-line: await-promise for await (const thing of dir) { } // tslint:disable-next-line: await-promise for await (const thing of dirBuffer) { } // tslint:disable-next-line: await-promise for await (const thing of dirUrl) { ...
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
async () => { const handle: FileHandle = await openAsync('test', 'r'); const writeStream = fs.createWriteStream('./index.d.ts', { fd: handle, }); const _wom = writeStream.writableObjectMode; // $ExpectType boolean const readStream = fs.createReadStream('./index.d.ts', { fd: handle,...
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
async () => { await writeFileAsync('test', 'test'); await writeFileAsync('test', Buffer.from('test')); await writeFileAsync('test', ['test', 'test2']); await writeFileAsync('test', async function *() { yield 'yeet'; }()); await writeFileAsync('test', process.stdin); }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err?: NodeJS.ErrnoException | null) => {}
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => { }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err, st: fs.Stats) => { }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err, st: fs.BigIntStats) => { }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err, st) => { st; // $ExpectType Stats | BigIntStats }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(err: Error | null) => {}
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(fd) => { // Create a stream from some character device. const stream = fd.createReadStream(); // $ExpectType ReadStream stream.close(); stream.push(null); stream.read(0); }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
(fd) => { // Create a stream from some character device. const stream = fd.createWriteStream(); // $ExpectType WriteStream stream.close(); }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
MethodDeclaration
filter(src, dst) { return src !== 'node_modules' && dst !== 'something'; }
0-Captain/DefinitelyTyped
types/node/test/fs.ts
TypeScript
ArrowFunction
async (id : number) => { const patient = await Patient.db .select(selectList) .where('patients.id', id) .join('users', 'users.id', '=', 'patients.userId'); if (!patient || !patient[0]) { throw new AppError('Patient with the given id is not found', status.NOT_FOUND); } return patient[0]; }
fuboki10/Ketofan-Back-End
src/services/patient.service.ts
TypeScript
ArrowFunction
async (limit : number, offset : number, searchProps: PatientSearchProps) => { const query = Patient.db .select(selectList) .join('users', 'users.id', '=', 'patients.userId'); // handle name search if (searchProps.name) { query.where('name', 'like', `${searchProps.name}%`); } // handle area sear...
fuboki10/Ketofan-Back-End
src/services/patient.service.ts
TypeScript
ArrowFunction
async (userId : number) : Promise<PatientInterface> => { const patient = await Patient.db .select(selectList) .where('patients.userId', userId) .join('users', 'users.id', '=', 'patients.userId'); if (!patient || !patient[0]) { throw new AppError('Patient with the given id is not found', status.NOT_FOU...
fuboki10/Ketofan-Back-End
src/services/patient.service.ts
TypeScript
InterfaceDeclaration
interface PatientSearchProps { name?: string; area?: number; insurance?: number; specialization?: number; }
fuboki10/Ketofan-Back-End
src/services/patient.service.ts
TypeScript
InterfaceDeclaration
/** * Form Context * Set top form style and pass to Form Item usage. */ export interface FormContextProps extends Callbacks { name?: string; vertical?: boolean; preserve?: boolean; form?: FormInstance; }
MonadsTech/react-native-form
dist/context.d.ts
TypeScript
ClassDeclaration
/** * @author bbrown@google.com (Brian Brown) */ export default class BitMatrixParser { private mappingBitMatrix; private readMappingMatrix; private version; /** * @param bitMatrix {@link BitMatrix} to parse * @throws FormatException if dimension is < 8 or > 144 or not 0 mod 2 ...
AliAyub007/ScannerRepo
node_modules/@zxing/library/esm5/core/datamatrix/decoder/BitMatrixParser.d.ts
TypeScript
MethodDeclaration
getVersion(): Version;
AliAyub007/ScannerRepo
node_modules/@zxing/library/esm5/core/datamatrix/decoder/BitMatrixParser.d.ts
TypeScript
MethodDeclaration
/** * <p>Creates the version object based on the dimension of the original bit matrix from * the datamatrix code.</p> * * <p>See ISO 16022:2006 Table 7 - ECC 200 symbol attributes</p> * * @param bitMatrix Original {@link BitMatrix} including alignment patterns * @return {@link ...
AliAyub007/ScannerRepo
node_modules/@zxing/library/esm5/core/datamatrix/decoder/BitMatrixParser.d.ts
TypeScript
MethodDeclaration
/** * <p>Reads the bits in the {@link BitMatrix} representing the mapping matrix (No alignment patterns) * in the correct order in order to reconstitute the codewords bytes contained within the * Data Matrix Code.</p> * * @return bytes encoded within the Data Matrix Code * @throws Fo...
AliAyub007/ScannerRepo
node_modules/@zxing/library/esm5/core/datamatrix/decoder/BitMatrixParser.d.ts
TypeScript
FunctionDeclaration
/** * Get artifacts for single project build * * @see https://circleci.com/docs/api/v1-reference/#build-artifacts * @example /project/:vcs-type/:username/:project/:build_num/artifacts * * @param token - CircleCI API token * @param vcs - Project's git information * @param buildNumber - Target build number * @re...
davidwallacejackson/circleci-api
src/api/artifacts.ts
TypeScript
FunctionDeclaration
/** * Get the latest build artifacts for a project * * @example branch - The branch you would like to look in for the latest build. Returns artifacts for latest build in entire project if omitted. * @example filter - Restricts which builds are returned. Set to "completed", "successful", "failed", "running" * * @s...
davidwallacejackson/circleci-api
src/api/artifacts.ts
TypeScript
ArrowFunction
(subjectName: string): string | undefined => subjectName.match(/CN=(.+?)(?:,|$)/)?.[1]
AlexeyWapo/crypto-pro
src/helpers/_extractCommonName.ts
TypeScript
ArrowFunction
async ({ callES, dynamicSettings, }) => { const callAsCurrentUser: APICaller = async ( endpoint: string, clientParams: Record<string, any> = {}, options?: CallAPIOptions ) => callES(endpoint, clientParams, options); const indexPatternsFetcher = new IndexPatternsFetcher(callAsCurrentUser); // S...
AlexCornigeanu/kibana
x-pack/plugins/uptime/server/lib/requests/get_index_pattern.ts
TypeScript
ArrowFunction
async ( endpoint: string, clientParams: Record<string, any> = {}, options?: CallAPIOptions ) => callES(endpoint, clientParams, options)
AlexCornigeanu/kibana
x-pack/plugins/uptime/server/lib/requests/get_index_pattern.ts
TypeScript
ClassDeclaration
export class ItemProperty { constructor( public id: string, public name: Text[] = [], // value bir dil icin birden fazla deger olabilir. Yani su sekilde olacak (ornegin name = [ color , renk ]): // value = [ tr:kirmizi, tr:mavi, en:red, en: blue ] public value: Text[] = [], ...
hrabhijith/frontend-service
src/app/catalogue/model/publish/item-property.ts
TypeScript
ArrowFunction
async (req: NextApiRequest, res: NextApiResponse) => { const credential = await useCredential() if ( credential.accessToken == null || credential.refreshToken == null || credential.accessToken.length <= 0 || credential.refreshToken.length <= 0 ) return res.status(401) c...
iamtakagi/fitbit-insights
src/pages/api/fitbit.ts
TypeScript
ArrowFunction
(activity) => { res.json(JSON.stringify(activity)) }
iamtakagi/fitbit-insights
src/pages/api/fitbit.ts
TypeScript
FunctionDeclaration
async function addStatusLogEntry(): Promise<void> { await connect(); await Status.logStatus(); await disconnect(); }
simbo/home-internet-connection
src/server/cron-tasks/log-status.task.ts
TypeScript
ArrowFunction
(søknad: ISøknad) => { const fraOmDeg = [ søknad.søker.oppholdsland.svar, søknad.søker.arbeidsland.svar, søknad.søker.pensjonsland.svar, ]; const fraOmBarnet = søknad.barnInkludertISøknaden.flatMap((barn: IBarnMedISøknad) => [ barn.oppholdsland.svar, barn.barnetrygdF...
navikt/familie-ba-soknad
src/frontend/utils/eøs.ts
TypeScript
ArrowFunction
(barn: IBarnMedISøknad) => [ barn.oppholdsland.svar, barn.barnetrygdFraEøslandHvilketLand.svar, barn.andreForelderArbeidUtlandetHvilketLand.svar, barn.andreForelderPensjonHvilketLand.svar, ]
navikt/familie-ba-soknad
src/frontend/utils/eøs.ts
TypeScript
ArrowFunction
(søknad: ISøknad) => søknad.mottarBarnetrygdForBarnFraAnnetEøsland.svar === ESvar.JA
navikt/familie-ba-soknad
src/frontend/utils/eøs.ts
TypeScript
FunctionDeclaration
async function loadArtistsByGroupIds(ids: GroupId[]) { const rows = await ArtistModel.find({ groupId: { $in: ids } }); return ids.map((id) => ( rows.filter((x) => ( x.groupId.toString() === id.toString() )) )); }
Musly/musly-api
app/artist/ArtistLoader.ts
TypeScript
FunctionDeclaration
async function loadArtistByIds(ids: ArtistId[]) { const rows = await ArtistModel.find({ _id: { $in: ids } }); return ids.map((id) => ( rows.filter((x) => ( x._id.toString() === id.toString() )) )); }
Musly/musly-api
app/artist/ArtistLoader.ts
TypeScript