type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
() => [ConfigurationDescriptionCreateOrConnectWithoutConfigurationSetDescriptionInput]
e-NABLE-Volunteer-Community/configurator-export
src/@generated/prisma-nestjs-graphql/configuration-description/configuration-description-unchecked-create-nested-many-without-configuration-set-description.input.ts
TypeScript
ArrowFunction
() => ConfigurationDescriptionCreateManyConfigurationSetDescriptionInputEnvelope
e-NABLE-Volunteer-Community/configurator-export
src/@generated/prisma-nestjs-graphql/configuration-description/configuration-description-unchecked-create-nested-many-without-configuration-set-description.input.ts
TypeScript
ArrowFunction
() => [ConfigurationDescriptionWhereUniqueInput]
e-NABLE-Volunteer-Community/configurator-export
src/@generated/prisma-nestjs-graphql/configuration-description/configuration-description-unchecked-create-nested-many-without-configuration-set-description.input.ts
TypeScript
ClassDeclaration
@InputType() export class ConfigurationDescriptionUncheckedCreateNestedManyWithoutConfigurationSetDescriptionInput { @Field(() => [ConfigurationDescriptionCreateWithoutConfigurationSetDescriptionInput], {nullable:true}) create?: Array<ConfigurationDescriptionCreateWithoutConfigurationSetDescriptionInput>; ...
e-NABLE-Volunteer-Community/configurator-export
src/@generated/prisma-nestjs-graphql/configuration-description/configuration-description-unchecked-create-nested-many-without-configuration-set-description.input.ts
TypeScript
FunctionDeclaration
export default function hmr() { if (module.hot) { module.hot.accept(); } }
korki43/gauth-export
src/hmr.ts
TypeScript
ClassDeclaration
export class Movie { id: number; title: string; year: number; genres: string[]; }
Jrock30/hello-nest
src/movies/entities/movie.entity.ts
TypeScript
FunctionDeclaration
export function toConstraintId(link: ConstraintId): string { return link.constraintId; }
SE-Stuttgart/xstampp-4.1-naxt
naxt-electron/src/naxt-cast/src/main/services/util/toIds.ts
TypeScript
FunctionDeclaration
export function toHazardId(link: HazardId): string { return link.hazardId; }
SE-Stuttgart/xstampp-4.1-naxt
naxt-electron/src/naxt-cast/src/main/services/util/toIds.ts
TypeScript
FunctionDeclaration
export function toResponsibilityId(link: ResponsibilityId): string { return link.responsibilityId; }
SE-Stuttgart/xstampp-4.1-naxt
naxt-electron/src/naxt-cast/src/main/services/util/toIds.ts
TypeScript
FunctionDeclaration
export function toControllerId(link: ControllerId): string { return link.controllerId.toString(); }
SE-Stuttgart/xstampp-4.1-naxt
naxt-electron/src/naxt-cast/src/main/services/util/toIds.ts
TypeScript
FunctionDeclaration
export function toChangesAndDynamicsOverTimeId(link: ChangesAndDynamicsOverTimeControllerLink): string { return link.changesAndDynamicsOverTimeId; }
SE-Stuttgart/xstampp-4.1-naxt
naxt-electron/src/naxt-cast/src/main/services/util/toIds.ts
TypeScript
FunctionDeclaration
export function toCommunicationAndCoordinationId(link: CommunicationAndCoordinationController1Link): string { return link.communicationAndCoordinationId; }
SE-Stuttgart/xstampp-4.1-naxt
naxt-electron/src/naxt-cast/src/main/services/util/toIds.ts
TypeScript
FunctionDeclaration
export function toInternalAndExternalEconomicsId(link: InternalAndExternalEconomicsControllerLink): string { return link.internalAndExternalEconomicsId; }
SE-Stuttgart/xstampp-4.1-naxt
naxt-electron/src/naxt-cast/src/main/services/util/toIds.ts
TypeScript
FunctionDeclaration
export function toSafetyCultureId(link: SafetyCultureControllerLink): string { return link.safetyCultureId; }
SE-Stuttgart/xstampp-4.1-naxt
naxt-electron/src/naxt-cast/src/main/services/util/toIds.ts
TypeScript
FunctionDeclaration
export function toSafetyInformationSystemId(link: SafetyInformationSystemControllerLink): string { return link.safetyInformationSystemId; }
SE-Stuttgart/xstampp-4.1-naxt
naxt-electron/src/naxt-cast/src/main/services/util/toIds.ts
TypeScript
FunctionDeclaration
export function toSafetyManagementSystemId(link: SafetyManagementSystemControllerLink): string { return link.safetyManagementSystemId; }
SE-Stuttgart/xstampp-4.1-naxt
naxt-electron/src/naxt-cast/src/main/services/util/toIds.ts
TypeScript
ArrowFunction
(product: ProductDTO) => { const url: string = "/products/" + product.id; return ( <div className="list-item box columns is-vcentered"> <div className="column listItem">{product.category}</div> <div className="column listItem">{product.name}</div> <div className="c...
ro-msg-react-training/online-shop-ciubucalexandru
online-shop/src/components/ProductListView/ProductList/ProductItem/ProductItem.tsx
TypeScript
ArrowFunction
([, currentBreakpoint]) => currentBreakpoint.width < xl
EsMACGIA/deportes-cp
src/app/@theme/components/header/header.component.ts
TypeScript
ArrowFunction
(isLessThanXl: boolean) => this.userPictureOnly = isLessThanXl
EsMACGIA/deportes-cp
src/app/@theme/components/header/header.component.ts
TypeScript
ArrowFunction
({ name }) => name
EsMACGIA/deportes-cp
src/app/@theme/components/header/header.component.ts
TypeScript
ArrowFunction
themeName => this.currentTheme = themeName
EsMACGIA/deportes-cp
src/app/@theme/components/header/header.component.ts
TypeScript
ArrowFunction
(event) => { if (event.item.title === 'Cerrar sesión') { this.authService.logout(); this.router.navigate(['/auth/login']) } }
EsMACGIA/deportes-cp
src/app/@theme/components/header/header.component.ts
TypeScript
ClassDeclaration
@Component({ selector: 'ngx-header', styleUrls: ['./header.component.scss'], templateUrl: './header.component.html', }) export class HeaderComponent implements OnInit, OnDestroy { private destroy$: Subject<void> = new Subject<void>(); userPictureOnly: boolean = false; user: any; themes = [ { ...
EsMACGIA/deportes-cp
src/app/@theme/components/header/header.component.ts
TypeScript
MethodDeclaration
ngOnInit() { let currentUser = JSON.parse(localStorage.getItem('currentUser')); let name = ''; if(currentUser.role == 'admin') { name = 'Administrador'; } else if (currentUser.role == 'commission') { name = currentUser.name; } else { name = currentUser.name + ' ' + currentUs...
EsMACGIA/deportes-cp
src/app/@theme/components/header/header.component.ts
TypeScript
MethodDeclaration
ngOnDestroy() { this.destroy$.next(); this.destroy$.complete(); }
EsMACGIA/deportes-cp
src/app/@theme/components/header/header.component.ts
TypeScript
MethodDeclaration
changeTheme(themeName: string) { this.themeService.changeTheme(themeName); }
EsMACGIA/deportes-cp
src/app/@theme/components/header/header.component.ts
TypeScript
MethodDeclaration
toggleSidebar(): boolean { this.sidebarService.toggle(true, 'menu-sidebar'); this.layoutService.changeLayoutSize(); return false; }
EsMACGIA/deportes-cp
src/app/@theme/components/header/header.component.ts
TypeScript
MethodDeclaration
navigateHome() { this.menuService.navigateHome(); return false; }
EsMACGIA/deportes-cp
src/app/@theme/components/header/header.component.ts
TypeScript
ClassDeclaration
export class Driver { private id: number; private name: string; private model: string; private carPlate: string; private rate: number; private bussy: boolean; constructor() {} getId(): number { return this.id; } getName(): string { return this.name; } getModel(): s...
mikiPP/Cotxox
Cotxox/Frontend/src/app/Shared/Driver.model.ts
TypeScript
MethodDeclaration
getId(): number { return this.id; }
mikiPP/Cotxox
Cotxox/Frontend/src/app/Shared/Driver.model.ts
TypeScript
MethodDeclaration
getName(): string { return this.name; }
mikiPP/Cotxox
Cotxox/Frontend/src/app/Shared/Driver.model.ts
TypeScript
MethodDeclaration
getModel(): string { return this.model; }
mikiPP/Cotxox
Cotxox/Frontend/src/app/Shared/Driver.model.ts
TypeScript
MethodDeclaration
getCarPlate(): string { return this.carPlate; }
mikiPP/Cotxox
Cotxox/Frontend/src/app/Shared/Driver.model.ts
TypeScript
MethodDeclaration
getRate(): number { return this.rate; }
mikiPP/Cotxox
Cotxox/Frontend/src/app/Shared/Driver.model.ts
TypeScript
MethodDeclaration
getBussy(): boolean { return this.bussy; }
mikiPP/Cotxox
Cotxox/Frontend/src/app/Shared/Driver.model.ts
TypeScript
MethodDeclaration
setName(value: string) { this.name = value; }
mikiPP/Cotxox
Cotxox/Frontend/src/app/Shared/Driver.model.ts
TypeScript
MethodDeclaration
setModel(value: string) { this.model = value; }
mikiPP/Cotxox
Cotxox/Frontend/src/app/Shared/Driver.model.ts
TypeScript
MethodDeclaration
setCarPlate(value: string) { this.carPlate = value; }
mikiPP/Cotxox
Cotxox/Frontend/src/app/Shared/Driver.model.ts
TypeScript
MethodDeclaration
setRate(value: number) { this.rate = value; }
mikiPP/Cotxox
Cotxox/Frontend/src/app/Shared/Driver.model.ts
TypeScript
MethodDeclaration
setBussy(value: boolean) { this.bussy = value; }
mikiPP/Cotxox
Cotxox/Frontend/src/app/Shared/Driver.model.ts
TypeScript
MethodDeclaration
setId(value: number) { this.id = value; }
mikiPP/Cotxox
Cotxox/Frontend/src/app/Shared/Driver.model.ts
TypeScript
ArrowFunction
(resolve, reject) => { onCallObservers.forEach((cb) => cb({requestName: 'modifyFile'})); this.stream = this.client.createFileSet( credentialMetadata, (err, res) => { if (err) { reject(err); onErrorObservers.forEach((cb) => cb({error: err, requ...
pachyderm/node-pachyderm
src/services/pfs/clients/FileSet.ts
TypeScript
ArrowFunction
(cb) => cb({requestName: 'modifyFile'})
pachyderm/node-pachyderm
src/services/pfs/clients/FileSet.ts
TypeScript
ArrowFunction
(err, res) => { if (err) { reject(err); onErrorObservers.forEach((cb) => cb({error: err, requestName: 'modifyFile'}), ); return; } else { this.fileSetId = res.getFileSetId(); resolve(res.getFileSetId()); ...
pachyderm/node-pachyderm
src/services/pfs/clients/FileSet.ts
TypeScript
ArrowFunction
(cb) => cb({error: err, requestName: 'modifyFile'})
pachyderm/node-pachyderm
src/services/pfs/clients/FileSet.ts
TypeScript
ArrowFunction
(cb) => cb({requestName: 'modifyFile'})
pachyderm/node-pachyderm
src/services/pfs/clients/FileSet.ts
TypeScript
ClassDeclaration
export class FileSet extends FileClient<string> { fileSetId: string | undefined; constructor({ pachdAddress, channelCredentials, credentialMetadata, plugins = [], }: FileClientConstructorArgs) { super({ pachdAddress, channelCredentials, credentialMetadata, plugins, ...
pachyderm/node-pachyderm
src/services/pfs/clients/FileSet.ts
TypeScript
ClassDeclaration
export class AwsSnsTrigger implements INodeType { description: INodeTypeDescription = { displayName: 'AWS SNS Trigger', subtitle: `={{$parameter["topic"].split(':')[5]}}`, name: 'awsSnsTrigger', icon: 'file:sns.png', group: ['trigger'], version: 1, description: 'Handle AWS SNS events via webhooks', de...
Abysim/n8n
packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts
TypeScript
MethodDeclaration
// Get all the available topics to display them to user so that he can // select them easily async getTopics(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> { const returnData: INodePropertyOptions[] = []; const data = await awsApiRequestSOAP.call(this, 'sns', 'GET', '/?Action=ListTopics'); l...
Abysim/n8n
packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts
TypeScript
MethodDeclaration
async checkExists(this: IHookFunctions): Promise<boolean> { const webhookData = this.getWorkflowStaticData('node'); const topic = this.getNodeParameter('topic') as string; if (webhookData.webhookId === undefined) { return false; } const params = [ `TopicArn=${topic}`, 'Version=2010-0...
Abysim/n8n
packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts
TypeScript
MethodDeclaration
async create(this: IHookFunctions): Promise<boolean> { const webhookData = this.getWorkflowStaticData('node'); const webhookUrl = this.getNodeWebhookUrl('default') as string; const topic = this.getNodeParameter('topic') as string; if (webhookUrl.includes('%20')) { throw new NodeOperationError(thi...
Abysim/n8n
packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts
TypeScript
MethodDeclaration
async delete(this: IHookFunctions): Promise<boolean> { const webhookData = this.getWorkflowStaticData('node'); const params = [ `SubscriptionArn=${webhookData.webhookId}`, 'Version=2010-03-31', ]; try { await awsApiRequestSOAP.call(this, 'sns', 'GET', '/?Action=Unsubscribe&' + params.joi...
Abysim/n8n
packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts
TypeScript
MethodDeclaration
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> { const req = this.getRequestObject(); const topic = this.getNodeParameter('topic') as string; // @ts-ignore const body = JSON.parse((req.rawBody).toString()); if (body.Type === 'SubscriptionConfirmation' && body.TopicArn === topic) {...
Abysim/n8n
packages/nodes-base/nodes/Aws/AwsSnsTrigger.node.ts
TypeScript
FunctionDeclaration
async function init() { // container = document.getElementById( 'container' ); camera = new THREE.PerspectiveCamera( 60, window.innerWidth / window.innerHeight, 1, 20000 ); camera.position.y = getY(wo...
BixinTech/Dangle
example/src/three.js/webgl_geometry_minecraft.ts
TypeScript
FunctionDeclaration
function onWindowResize() { camera.aspect = window.innerWidth / window.innerHeight; camera.updateProjectionMatrix(); renderer.setSize(window.innerWidth, window.innerHeight); controls.handleResize(); }
BixinTech/Dangle
example/src/three.js/webgl_geometry_minecraft.ts
TypeScript
FunctionDeclaration
function generateHeight(width, height) { const data: any[] = [], perlin = new ImprovedNoise(), size = width * height, z = Math.random() * 100; let quality = 2; for (let j = 0; j < 4; j++) { if (j === 0) for (let i = 0; i < si...
BixinTech/Dangle
example/src/three.js/webgl_geometry_minecraft.ts
TypeScript
FunctionDeclaration
function getY(x, z) { return (data[x + z * worldWidth] * 0.15) | 0; }
BixinTech/Dangle
example/src/three.js/webgl_geometry_minecraft.ts
TypeScript
FunctionDeclaration
// function animate() { requestAnimationFrame(animate); render(); // stats.update(); gl.endFrame(); }
BixinTech/Dangle
example/src/three.js/webgl_geometry_minecraft.ts
TypeScript
FunctionDeclaration
function render() { controls.update(clock.getDelta()); renderer.render(scene, camera); }
BixinTech/Dangle
example/src/three.js/webgl_geometry_minecraft.ts
TypeScript
ArrowFunction
( name: string, fn: (event: { pageX: number; pageY: number }) => void ) => { if (name == "mousemove") { self.gestureView!!.onTouchMove = ({ x, y }) => { fn({ pageX: x, pageY: y }); }; } }
BixinTech/Dangle
example/src/three.js/webgl_geometry_minecraft.ts
TypeScript
ArrowFunction
({ x, y }) => { fn({ pageX: x, pageY: y }); }
BixinTech/Dangle
example/src/three.js/webgl_geometry_minecraft.ts
TypeScript
ArrowFunction
() => { return gl; }
BixinTech/Dangle
example/src/three.js/webgl_geometry_minecraft.ts
TypeScript
MethodDeclaration
onShow() { navbar(context).setTitle("webgl_geometry_minecraft"); }
BixinTech/Dangle
example/src/three.js/webgl_geometry_minecraft.ts
TypeScript
FunctionDeclaration
// the hook Effect will be activated by the click on the button function useAddMarker(selected: boolean) { // The hook 'useLeaflet' is provided by the react-leaflet library. // This hook allow to access to the Leaflet Context and its variables. // It is a simple way to access the map and its content. cons...
vikinatora/Foodlance-Delivery
foodlance/src/components/Map/hooks/useAddMarker.tsx
TypeScript
ArrowFunction
(e: LeafletMouseEvent) => { e.originalEvent.preventDefault(); // create your Marker with the react leaflet component Marker setPoint(<Marker position={e.latlng} />); e.originalEvent.stopPropagation(); }
vikinatora/Foodlance-Delivery
foodlance/src/components/Map/hooks/useAddMarker.tsx
TypeScript
ArrowFunction
() => { map?.doubleClickZoom.disable() if (activate === true) { map?.on('dblclick', markerEvent); } return () => { map?.off('dblclick', markerEvent); setPoint(null); } }
vikinatora/Foodlance-Delivery
foodlance/src/components/Map/hooks/useAddMarker.tsx
TypeScript
ArrowFunction
() => { map?.off('dblclick', markerEvent); setPoint(null); }
vikinatora/Foodlance-Delivery
foodlance/src/components/Map/hooks/useAddMarker.tsx
TypeScript
ArrowFunction
(list) => { const data = list .filter(({ level }) => level === 'country') .map((item) => Object.assign({}, item, { value: Math.random() * 5000 })); new L7Plot('container', { map: { type: 'mapbox', style: 'blank', center: [120.19382669582967, 30.258134], zoom: ...
antvis/L7Plot
website/examples/advanced-plot/muti-plots/demo/world-bubble.ts
TypeScript
ArrowFunction
({ level }) => level === 'country'
antvis/L7Plot
website/examples/advanced-plot/muti-plots/demo/world-bubble.ts
TypeScript
ArrowFunction
(item) => Object.assign({}, item, { value: Math.random() * 5000 })
antvis/L7Plot
website/examples/advanced-plot/muti-plots/demo/world-bubble.ts
TypeScript
ArrowFunction
() => { expect(parseBmv2CompilerOutputErr(input)).toMatchInlineSnapshot(` Array [ Object { "error": "error, unexpected BIT", "line": 5, }, Object { "error": "error, unexpected BIT", "line": 67, }, ] `); }
PBug90/p4-vscode-extension
server/test/RemoteCompiler.test.ts
TypeScript
ClassDeclaration
@Module({ imports: [ MongooseModule.forFeature([{name: 'User', schema: UserSchema}])], controllers: [UsersController], providers: [UsersService, Logger, UsersDao], }) export class UsersModule {}
NestAngularProject/YoutubeRoom-back
src/users/users.module.ts
TypeScript
ClassDeclaration
export default class Web3Service { appProvider: JsonRpcProvider; ensProvider: JsonRpcProvider; userProvider!: ComputedRef<Web3Provider>; constructor( private readonly rpcProviderService = _rpcProviderService, private readonly config: ConfigService = configService ) { this.appProvider = this.rpcP...
koil-finance/frontend
src/services/web3/web3.service.ts
TypeScript
InterfaceDeclaration
interface Web3Profile { ens: string | null; avatar: string | null; }
koil-finance/frontend
src/services/web3/web3.service.ts
TypeScript
MethodDeclaration
public setUserProvider(provider: ComputedRef<Web3Provider>) { this.userProvider = provider; }
koil-finance/frontend
src/services/web3/web3.service.ts
TypeScript
MethodDeclaration
async getEnsName(address: string): Promise<string | null> { try { return await this.ensProvider.lookupAddress(address); } catch (error) { return null; } }
koil-finance/frontend
src/services/web3/web3.service.ts
TypeScript
MethodDeclaration
async getEnsAvatar(address: string): Promise<string | null> { try { return await resolveENSAvatar(this.ensProvider, address); } catch (error) { return null; } }
koil-finance/frontend
src/services/web3/web3.service.ts
TypeScript
MethodDeclaration
async getProfile(address: string): Promise<Web3Profile> { return { ens: await this.getEnsName(address), avatar: await this.getEnsAvatar(address) }; }
koil-finance/frontend
src/services/web3/web3.service.ts
TypeScript
MethodDeclaration
async getUserAddress(): Promise<string> { const signer = this.userProvider.value.getSigner(); const userAddress: string = await signer.getAddress(); return userAddress; }
koil-finance/frontend
src/services/web3/web3.service.ts
TypeScript
MethodDeclaration
public async sendTransaction( contractAddress: string, abi: any, action: string, params: any[], options: Record<string, any>, forceEthereumLegacyTxType = false ): Promise<TransactionResponse> { const signer = this.userProvider.value.getSigner(); const contract = new Contract(contractA...
koil-finance/frontend
src/services/web3/web3.service.ts
TypeScript
ArrowFunction
() => { let component: GameComponent; let fixture: ComponentFixture<GameComponent>; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [ GameComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(GameComponent); c...
Gordee4/fhq-server
web-user/src/app/pages/game/game.component.spec.ts
TypeScript
ArrowFunction
() => { TestBed.configureTestingModule({ declarations: [ GameComponent ] }) .compileComponents(); }
Gordee4/fhq-server
web-user/src/app/pages/game/game.component.spec.ts
TypeScript
ArrowFunction
() => { fixture = TestBed.createComponent(GameComponent); component = fixture.componentInstance; fixture.detectChanges(); }
Gordee4/fhq-server
web-user/src/app/pages/game/game.component.spec.ts
TypeScript
ClassDeclaration
@Injectable() export class StorageProvider { constructor(public storage: Storage) {} getToken() : Promise<string> { return this.storage.get(STORAGE_KEY); } setToken(token: string): Promise<any> { return this.storage.set(STORAGE_KEY, token); } }
Statoil/coffeequiz
src/providers/storage/storage.ts
TypeScript
MethodDeclaration
getToken() : Promise<string> { return this.storage.get(STORAGE_KEY); }
Statoil/coffeequiz
src/providers/storage/storage.ts
TypeScript
MethodDeclaration
setToken(token: string): Promise<any> { return this.storage.set(STORAGE_KEY, token); }
Statoil/coffeequiz
src/providers/storage/storage.ts
TypeScript
ArrowFunction
({ className, ...props }) => { return ( <div className={`page-layout ${className || ""}`}
DesignByOnyx/react-slots
src/demo/components/PageLayout.tsx
TypeScript
TypeAliasDeclaration
type PageLayoutProps = JSX.IntrinsicElements["div"];
DesignByOnyx/react-slots
src/demo/components/PageLayout.tsx
TypeScript
ClassDeclaration
export class Plugin extends BaseModel { public id = -1; public name = ''; public description = ''; public iconUrl = ''; public downloads = -1; public premium = false; public external = false; }
BerdiiNN/frontend
src/api/models/Plugin.ts
TypeScript
ClassDeclaration
export class RequestBodyException extends Error { public response: { key: string; code: number; message: string }; constructor(public readonly error: { readonly key: string; readonly code: number; readonly message: string }, ...args) { super(...args); this.response = { key: error.key, code: error.code, me...
S-Sergio-A/messsages-microservice
src/exceptions/RequestBody.exception.ts
TypeScript
ArrowFunction
(inputType: ArgumentType) => { switch (inputType) { case "string": return "input"; case "number": return "number"; case "path": return "path"; case "list": return "list"; case "password": return "password"; default: return "input"; } }
raphaelmansuy/matcha-bot
packages/matcha-bot-cli/src/commands/commands-util.ts
TypeScript
ArrowFunction
<T>(dic: Record<string, T>) => { return Object.keys(dic).map((k) => dic[k]); }
raphaelmansuy/matcha-bot
packages/matcha-bot-cli/src/commands/commands-util.ts
TypeScript
ArrowFunction
(k) => dic[k]
raphaelmansuy/matcha-bot
packages/matcha-bot-cli/src/commands/commands-util.ts
TypeScript
ArrowFunction
(command: Command) => { return command.args; }
raphaelmansuy/matcha-bot
packages/matcha-bot-cli/src/commands/commands-util.ts
TypeScript
ArrowFunction
(commands: Commands) => recordToArray(commands).map((c) => c.name)
raphaelmansuy/matcha-bot
packages/matcha-bot-cli/src/commands/commands-util.ts
TypeScript
ArrowFunction
(c) => c.name
raphaelmansuy/matcha-bot
packages/matcha-bot-cli/src/commands/commands-util.ts
TypeScript
ArrowFunction
async ( args: Argument[], context: Record<string, unknown> ) => { // generate a list of questions const questions = args.map((arg) => ({ type: getInputType(arg.type), name: arg.name, message: arg.description ?? `${arg.name}`, default: arg.default ? executeTemplate(arg.default, context) : arg.de...
raphaelmansuy/matcha-bot
packages/matcha-bot-cli/src/commands/commands-util.ts
TypeScript
ArrowFunction
(arg) => ({ type: getInputType(arg.type), name: arg.name, message: arg.description ?? `${arg.name}`, default: arg.default ? executeTemplate(arg.default, context) : arg.default, // Interpret default value as an expression choices: arg.choices, })
raphaelmansuy/matcha-bot
packages/matcha-bot-cli/src/commands/commands-util.ts
TypeScript
FunctionDeclaration
function defaultMalformedUriErrorHandler( error: URIError, urlSerializer: UrlSerializer, url: string): UrlTree { return urlSerializer.parse('/'); }
atscott/angular
packages/router/src/router.ts
TypeScript
FunctionDeclaration
/** * @internal */ function defaultRouterHook(snapshot: RouterStateSnapshot, runExtras: { appliedUrlTree: UrlTree, rawUrlTree: UrlTree, skipLocationChange: boolean, replaceUrl: boolean, navigationId: number }): Observable<void> { return of(null) as any; }
atscott/angular
packages/router/src/router.ts
TypeScript