type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
target => { Reflect.defineMetadata(NAMESPACE.INTERFACE, name, target); }
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
target => { Reflect.defineMetadata(NAMESPACE.RETRIES, count || 2, target); }
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
target => { Reflect.defineMetadata(NAMESPACE.TIMEOUT, time || 3000, target); }
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
target => { Reflect.defineMetadata(NAMESPACE.VERSION, version || '0.0.0', target); }
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
(target, property, descriptor) => { Reflect.defineMetadata(NAMESPACE.SWAGGER_REQUEST_SCHEMA, schemas, descriptor.value); }
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
(target, property, descriptor) => { Reflect.defineMetadata(NAMESPACE.SWAGGER_RESPONSE_SCHEMA, schema, descriptor.value); }
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
(target, property, descriptor) => { Reflect.defineMetadata(NAMESPACE.SWAGGER_SUMMARY, str, descriptor.value); }
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
(fn, index) => { if (typeof fn === 'function') return Promise.resolve(fn(ctx)); return Promise.resolve(ctx.req.parameters[index]); }
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
ctx => ctx.req.requestId
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
ctx => ctx.req.dubboVersion
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
ctx => ctx.req.interfaceName
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
ctx => ctx.req.method
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
ctx => ctx.req.interfaceVersion
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
ctx => ctx.req.attachments
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
(ctx, key: keyof ContextRequestType['attachments']) => ctx.req.attachments[key]
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
ctx => ctx.req.parameters
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
(ctx, index: number) => ctx.req.parameters[index]
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
(target, property, index) => { const clazz = target.constructor.prototype[property]; const meta = ParameterMetadata.bind(clazz); meta.set(index, callback); }
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
(...args: any[]): ParameterDecorator => { return (target, property, index) => { const clazz = target.constructor.prototype[property]; const meta = ParameterMetadata.bind(clazz); meta.set(index, (ctx) => callback(ctx, ...args)); } }
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
(target, property, index) => { const clazz = target.constructor.prototype[property]; const meta = ParameterMetadata.bind(clazz); meta.set(index, (ctx) => callback(ctx, ...args)); }
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
(ctx) => callback(ctx, ...args)
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
(target, property, descriptor) => { const clazz = descriptor.value; if (!Reflect.hasMetadata(NAMESPACE.MIDDLEWARE, clazz)) Reflect.defineMetadata(NAMESPACE.MIDDLEWARE, new MiddlewareMetadata<T>(), clazz); const metadata = Reflect.getMetadata(NAMESPACE.MIDDLEWARE, clazz) as MiddlewareMetadata<T>; metadata.use(...args); }
typeservice/dubbo
src/decorates.ts
TypeScript
ClassDeclaration
export class ParameterMetadata { private readonly parameters: ((ctx: Context) => any)[] = []; set(index: number, callback: (ctx: Context) => any) { this.parameters[index] = callback; return this; } exec(ctx: Context) { return Promise.all(this.parameters.map((fn, index) => { if (typeof fn === 'function') return Promise.resolve(fn(ctx)); return Promise.resolve(ctx.req.parameters[index]); })); } static bind(target: Object) { let meta: ParameterMetadata; if (!Reflect.hasMetadata(NAMESPACE.REQ, target)) { meta = new ParameterMetadata(); Reflect.defineMetadata(NAMESPACE.REQ, meta, target); } else { meta = Reflect.getMetadata(NAMESPACE.REQ, target) as ParameterMetadata; } return meta; } }
typeservice/dubbo
src/decorates.ts
TypeScript
ClassDeclaration
export class MiddlewareMetadata<T extends Context = Context>{ private readonly stacks: ComposeMiddleware<T>[] = []; use(...args: ComposeMiddleware<T>[]) { this.stacks.unshift(...args); return this; } exec(ctx: T, fn?: ComposeMiddleware<T>) { const stacks = this.stacks.slice(0); fn && stacks.push(fn); return Compose<T>(stacks)(ctx); } }
typeservice/dubbo
src/decorates.ts
TypeScript
EnumDeclaration
export enum NAMESPACE { DELAY = 'rpc.delay', DESCRIPTION = 'rpc.description', GROUP = 'rpc.group', INTERFACE = 'rpc.interface', METHOD = 'rpc.method', RETRIES = 'rpc.retries', TIMEOUT = 'rpc.timeout', VERSION = 'rpc.version', REQ = 'rpc.req', MIDDLEWARE = 'rpc.middleware', SWAGGER_REQUEST_SCHEMA = 'rpc.method.swagger.schema.request', SWAGGER_RESPONSE_SCHEMA = 'rpc.method.swagger.schema.response', SWAGGER_SUMMARY = 'rpc.method.swagger.summary', }
typeservice/dubbo
src/decorates.ts
TypeScript
TypeAliasDeclaration
type ContextRequestType = ProviderContext['req'];
typeservice/dubbo
src/decorates.ts
TypeScript
TypeAliasDeclaration
type AttachmentItemType = ContextRequestType['attachments'][keyof ContextRequestType['attachments']];
typeservice/dubbo
src/decorates.ts
TypeScript
MethodDeclaration
Request(...schemas: ProviderServiceChunkMethodParametersSchema[]): MethodDecorator { return (target, property, descriptor) => { Reflect.defineMetadata(NAMESPACE.SWAGGER_REQUEST_SCHEMA, schemas, descriptor.value); } }
typeservice/dubbo
src/decorates.ts
TypeScript
MethodDeclaration
Response(schema: any): MethodDecorator { return (target, property, descriptor) => { Reflect.defineMetadata(NAMESPACE.SWAGGER_RESPONSE_SCHEMA, schema, descriptor.value); } }
typeservice/dubbo
src/decorates.ts
TypeScript
MethodDeclaration
Summary(str: string): MethodDecorator { return (target, property, descriptor) => { Reflect.defineMetadata(NAMESPACE.SWAGGER_SUMMARY, str, descriptor.value); } }
typeservice/dubbo
src/decorates.ts
TypeScript
MethodDeclaration
set(index: number, callback: (ctx: Context) => any) { this.parameters[index] = callback; return this; }
typeservice/dubbo
src/decorates.ts
TypeScript
MethodDeclaration
exec(ctx: Context) { return Promise.all(this.parameters.map((fn, index) => { if (typeof fn === 'function') return Promise.resolve(fn(ctx)); return Promise.resolve(ctx.req.parameters[index]); })); }
typeservice/dubbo
src/decorates.ts
TypeScript
MethodDeclaration
static bind(target: Object) { let meta: ParameterMetadata; if (!Reflect.hasMetadata(NAMESPACE.REQ, target)) { meta = new ParameterMetadata(); Reflect.defineMetadata(NAMESPACE.REQ, meta, target); } else { meta = Reflect.getMetadata(NAMESPACE.REQ, target) as ParameterMetadata; } return meta; }
typeservice/dubbo
src/decorates.ts
TypeScript
MethodDeclaration
use(...args: ComposeMiddleware<T>[]) { this.stacks.unshift(...args); return this; }
typeservice/dubbo
src/decorates.ts
TypeScript
MethodDeclaration
exec(ctx: T, fn?: ComposeMiddleware<T>) { const stacks = this.stacks.slice(0); fn && stacks.push(fn); return Compose<T>(stacks)(ctx); }
typeservice/dubbo
src/decorates.ts
TypeScript
ArrowFunction
() => ProductEntity
AppliedProject05/api.nestjs.paperbook
src/modules/category/entities/category.entity.ts
TypeScript
ArrowFunction
product => product.categories
AppliedProject05/api.nestjs.paperbook
src/modules/category/entities/category.entity.ts
TypeScript
ClassDeclaration
/** * The app's main category entity class * * Class that represents the entity that deals with rating */ @Entity('category') export class CategoryEntity extends BaseEntity implements ToDto<CategoryDto> { //#region Columns @ApiProperty() @Column({ type: 'varchar', length: 30, nullable: false }) public name: string //#region @ApiPropertyOptional({ type: () => ProductEntity, isArray: true }) @JoinTable() @ManyToMany( () => ProductEntity, product => product.categories ) public products?: ProductEntity[] //#endregion //#endregion public constructor(partialEntity: Partial<CategoryEntity>) { super() Object.assign(this, partialEntity) } /** * Method that converts the entity to your dto * * @returns the dto data */ public toDto(): CategoryDto { return new CategoryDto(this) } }
AppliedProject05/api.nestjs.paperbook
src/modules/category/entities/category.entity.ts
TypeScript
MethodDeclaration
/** * Method that converts the entity to your dto * * @returns the dto data */ public toDto(): CategoryDto { return new CategoryDto(this) }
AppliedProject05/api.nestjs.paperbook
src/modules/category/entities/category.entity.ts
TypeScript
ClassDeclaration
@Pipe({ name : 'safeStyle', }) export class SafeStylePipe implements PipeTransform { constructor(private sanitizer: DomSanitizer) { } public transform(style: string): SafeStyle { return this.sanitizer.bypassSecurityTrustStyle(style) } }
AnnaHilverling/siibra-explorer
src/ui/nehubaContainer/2dLandmarks/safeStyle.pipe.ts
TypeScript
MethodDeclaration
public transform(style: string): SafeStyle { return this.sanitizer.bypassSecurityTrustStyle(style) }
AnnaHilverling/siibra-explorer
src/ui/nehubaContainer/2dLandmarks/safeStyle.pipe.ts
TypeScript
FunctionDeclaration
function increment() { store.state.counter++ }
taigabrew/pinia
old test ssr/app/App.ts
TypeScript
ArrowFunction
() => store.state.counter * 2
taigabrew/pinia
old test ssr/app/App.ts
TypeScript
MethodDeclaration
setup() { const store = useStore() const doubleCount = computed(() => store.state.counter * 2) function increment() { store.state.counter++ } return { doubleCount, increment, state: store.state, } }
taigabrew/pinia
old test ssr/app/App.ts
TypeScript
FunctionDeclaration
export default function Reply({ reply, onReplyUpdate }: IReplyProps) { const { t } = useGiscusTranslation(); const formatDate = useDateFormatter(); const formatDateDistance = useRelativeTimeFormatter(); const updateReactions = useCallback( (content: Reaction, promise: Promise<unknown>) => onReplyUpdate(updateCommentReaction(reply, content), promise), [reply, onReplyUpdate], ); const [renderedReply, setRenderedComment] = useState(undefined); useEffect(() => { setRenderedComment(processCommentBody(renderMarkdown(reply.body))); }, [reply.body]); const hidden = reply.deletedAt || reply.isMinimized; return ( <div className="gsc-reply"> <div className="gsc-tl-line" /> <div className={`flex py-2 pl-4 ${hidden ? 'items-center' : ''}`}> <div className="gsc-reply-author-avatar"> <a rel="nofollow noopener noreferrer" target="_blank" href={reply.author.url} className="flex items-center" > <img className="rounded-full" src={reply.author.avatarUrl} width="30" height="30" alt={`@${reply.author.login}`}
AustenLamacraft/giscus
components/Reply.tsx
TypeScript
ArrowFunction
(content: Reaction, promise: Promise<unknown>) => onReplyUpdate(updateCommentReaction(reply, content), promise)
AustenLamacraft/giscus
components/Reply.tsx
TypeScript
ArrowFunction
() => { setRenderedComment(processCommentBody(renderMarkdown(reply.body))); }
AustenLamacraft/giscus
components/Reply.tsx
TypeScript
InterfaceDeclaration
interface IReplyProps { reply: IReply; onReplyUpdate: (newReply: IReply, promise: Promise<unknown>) => void; }
AustenLamacraft/giscus
components/Reply.tsx
TypeScript
MethodDeclaration
formatDate(reply
AustenLamacraft/giscus
components/Reply.tsx
TypeScript
MethodDeclaration
formatDateDistance(reply
AustenLamacraft/giscus
components/Reply.tsx
TypeScript
MethodDeclaration
t(reply
AustenLamacraft/giscus
components/Reply.tsx
TypeScript
MethodDeclaration
t('lastEditedAt', { date: reply
AustenLamacraft/giscus
components/Reply.tsx
TypeScript
MethodDeclaration
t('edited')
AustenLamacraft/giscus
components/Reply.tsx
TypeScript
MethodDeclaration
hidden ? ( <em className="color-text-secondary"> {reply.deletedAt ? t('thisCommentWasDeleted') : t('thisCommentWasHidden')} </em> ) : null
AustenLamacraft/giscus
components/Reply.tsx
TypeScript
ArrowFunction
()=> { console.log(`Koa server is listening on port ${port}`) }
hdmun/slackbot-example
src/index.ts
TypeScript
ArrowFunction
(typeName: string) => { let pluralizedTypeName; if (typeName.length === 1) { pluralizedTypeName = `${typeName}s`; } else { pluralizedTypeName = pluralize(typeName); } return pluralizedTypeName; }
Accessible-Concepts/webiny-js
packages/api-headless-cms/src/content/plugins/utils/pluralizedTypeName.ts
TypeScript
ArrowFunction
(alias) => alias
vj6464/ghostybot
src/interactions/help.ts
TypeScript
ArrowFunction
(option) => option
vj6464/ghostybot
src/interactions/help.ts
TypeScript
ClassDeclaration
export default class HelpInteraction extends Interaction { constructor(bot: Bot) { super(bot, { name: "help", description: "Return more information about a command", options: [ { name: "command", type: "STRING", description: "The command you're looking for", required: true, }, ], }); } async execute(interaction: CommandInteraction, args: (string | number | boolean | undefined)[]) { const arg = `${args[0]}`; const command = this.bot.utils.resolveCommand(arg); const lang = await this.bot.utils.getGuildLang(interaction.guild?.id); if (!command) { return interaction.reply(lang.HELP.CMD_NOT_FOUND); } else { const aliases = command.options.aliases ? command.options.aliases.map((alias) => alias) : lang.GLOBAL.NONE; const options = command.options.options ? command.options.options.map((option) => option) : lang.GLOBAL.NONE; const cooldown = command.options.cooldown ? `${command.options.cooldown}s` : "3s"; const guild = await this.bot.utils.getGuildById(interaction.guild?.id); const prefix = guild?.prefix; const memberPerms = getMemberPermissions(command, lang); const botPerms = getBotPermissions(command, lang); const embed = this.bot.utils .baseEmbed({ author: interaction.user, }) .addField(lang.HELP.ALIASES, aliases, true) .addField(lang.HELP.COOLDOWN, `${cooldown}`, true) .addField( lang.HELP.USAGE, command.options.usage ? `${prefix}${command.name} ${command.options.usage}` : lang.GLOBAL.NOT_SPECIFIED, true, ) .addField(lang.UTIL.CATEGORY, command.options.category, true) .addField( lang.UTIL.DESCRIPTION, command.options.description ? command.options.description : lang.GLOBAL.NOT_SPECIFIED, true, ) .addField(lang.HELP.OPTIONS, options, true) .addField(lang.HELP.BOT_PERMS, botPerms, true) .addField(lang.HELP.MEMBER_PERMS, memberPerms, true); interaction.reply(embed); } } }
vj6464/ghostybot
src/interactions/help.ts
TypeScript
MethodDeclaration
async execute(interaction: CommandInteraction, args: (string | number | boolean | undefined)[]) { const arg = `${args[0]}`; const command = this.bot.utils.resolveCommand(arg); const lang = await this.bot.utils.getGuildLang(interaction.guild?.id); if (!command) { return interaction.reply(lang.HELP.CMD_NOT_FOUND); } else { const aliases = command.options.aliases ? command.options.aliases.map((alias) => alias) : lang.GLOBAL.NONE; const options = command.options.options ? command.options.options.map((option) => option) : lang.GLOBAL.NONE; const cooldown = command.options.cooldown ? `${command.options.cooldown}s` : "3s"; const guild = await this.bot.utils.getGuildById(interaction.guild?.id); const prefix = guild?.prefix; const memberPerms = getMemberPermissions(command, lang); const botPerms = getBotPermissions(command, lang); const embed = this.bot.utils .baseEmbed({ author: interaction.user, }) .addField(lang.HELP.ALIASES, aliases, true) .addField(lang.HELP.COOLDOWN, `${cooldown}`, true) .addField( lang.HELP.USAGE, command.options.usage ? `${prefix}${command.name} ${command.options.usage}` : lang.GLOBAL.NOT_SPECIFIED, true, ) .addField(lang.UTIL.CATEGORY, command.options.category, true) .addField( lang.UTIL.DESCRIPTION, command.options.description ? command.options.description : lang.GLOBAL.NOT_SPECIFIED, true, ) .addField(lang.HELP.OPTIONS, options, true) .addField(lang.HELP.BOT_PERMS, botPerms, true) .addField(lang.HELP.MEMBER_PERMS, memberPerms, true); interaction.reply(embed); } }
vj6464/ghostybot
src/interactions/help.ts
TypeScript
ArrowFunction
() => { const { queryByText, queryByTestId } = render(<Contact />) expect(queryByTestId("contact-form")).toBeTruthy() expect(queryByTestId("email")).toBeTruthy() expect(queryByTestId("name")).toBeTruthy() expect(queryByTestId("message")).toBeTruthy() expect(queryByTestId("submit-button")).toBeTruthy() expect(queryByText("Contact")).toBeTruthy() }
sbardian/portfolio
src/components/contact.test.tsx
TypeScript
ArrowFunction
() => this.dispatchAdd()
neelkamath/duo-ludio
src/ts/web_components/components/track-data.ts
TypeScript
ClassDeclaration
/** * This web component has the HTML name `track-data`. It is meant for binaural beats. It displays a track's frequencies * and effects, with a button meant to save the track. If the track has effects to display, add the effects HTML between * this element's HTML tags. Call [[setTrack]] before the element is connected to the DOM. * * Example: * ``` * <track-data id="track"><ul><li>Focusing</li></ul></track-data> * <script>document.querySelector('#track').setTrack({frequency: 8});</script> * ``` */ export class TrackDataElement extends HTMLElement { private track!: PureTrack | IsochronicTrack | SolfeggioTrack; private readonly effects = document.createElement('titled-item') as TitledItemElement; private readonly layout: VerticalLayoutElement = document.createElement('vaadin-vertical-layout'); constructor() { super(); this.attachShadow({mode: 'open'}); this.effects.title = 'Effects'; } /** @returns A `vaadin-vertical-layout` block containing `child` */ private static getDiv(child: HTMLElement): HTMLDivElement { const div = document.createElement('div'); div.className = 'block'; div.append(child); return div; } /** Calling this more than once will throw an `Error` */ setTrack(track: PureTrack | IsochronicTrack | SolfeggioTrack): void { if (this.track) throw new Error('Track already set'); this.track = track; } connectedCallback() { if (!this.isConnected) return; this.effects.append(...this.childNodes); this.layout.append(TrackDataElement.getDiv(this.getFrequency())); if (this.effects) this.layout.append(TrackDataElement.getDiv(this.effects)); this.layout.append(TrackDataElement.getDiv(this.getButton())); this.shadowRoot!.append(this.layout); } disconnectedCallback() { for (const child of this.shadowRoot!.childNodes) child.remove(); } /** * Dispatches the `add` `Event` * * Fired when the button is clicked * @event */ private dispatchAdd(): void { this.dispatchEvent(new Event('add')); } private getButton(): ButtonElement { const button = document.createElement('vaadin-button'); button.innerHTML = '<iron-icon icon="vaadin:plus" slot="prefix"></iron-icon> Add to category'; button.addEventListener('click', () => this.dispatchAdd()); return button; } private getFrequency(): HTMLHeadingElement { let text = ''; if ('solfeggioFrequency' in this.track) { text = `${this.track.binauralBeatFrequency} Hz (${this.track.solfeggioFrequency} Hz Solfeggio)`; } else { text = `${this.track.frequency} Hz`; } const h2 = document.createElement('h2'); h2.textContent = `Frequency: ${text}`; return h2; } }
neelkamath/duo-ludio
src/ts/web_components/components/track-data.ts
TypeScript
InterfaceDeclaration
export interface SingleFrequencyTrack { /** Frequency in Hz */ frequency: number; }
neelkamath/duo-ludio
src/ts/web_components/components/track-data.ts
TypeScript
InterfaceDeclaration
export interface PureTrack extends SingleFrequencyTrack { }
neelkamath/duo-ludio
src/ts/web_components/components/track-data.ts
TypeScript
InterfaceDeclaration
export interface IsochronicTrack extends SingleFrequencyTrack { }
neelkamath/duo-ludio
src/ts/web_components/components/track-data.ts
TypeScript
InterfaceDeclaration
export interface SolfeggioTrack { /** Frequency in Hz */ binauralBeatFrequency: number; /** Frequency in Hz */ solfeggioFrequency: number; }
neelkamath/duo-ludio
src/ts/web_components/components/track-data.ts
TypeScript
MethodDeclaration
/** @returns A `vaadin-vertical-layout` block containing `child` */ private static getDiv(child: HTMLElement): HTMLDivElement { const div = document.createElement('div'); div.className = 'block'; div.append(child); return div; }
neelkamath/duo-ludio
src/ts/web_components/components/track-data.ts
TypeScript
MethodDeclaration
/** Calling this more than once will throw an `Error` */ setTrack(track: PureTrack | IsochronicTrack | SolfeggioTrack): void { if (this.track) throw new Error('Track already set'); this.track = track; }
neelkamath/duo-ludio
src/ts/web_components/components/track-data.ts
TypeScript
MethodDeclaration
connectedCallback() { if (!this.isConnected) return; this.effects.append(...this.childNodes); this.layout.append(TrackDataElement.getDiv(this.getFrequency())); if (this.effects) this.layout.append(TrackDataElement.getDiv(this.effects)); this.layout.append(TrackDataElement.getDiv(this.getButton())); this.shadowRoot!.append(this.layout); }
neelkamath/duo-ludio
src/ts/web_components/components/track-data.ts
TypeScript
MethodDeclaration
disconnectedCallback() { for (const child of this.shadowRoot!.childNodes) child.remove(); }
neelkamath/duo-ludio
src/ts/web_components/components/track-data.ts
TypeScript
MethodDeclaration
/** * Dispatches the `add` `Event` * * Fired when the button is clicked * @event */ private dispatchAdd(): void { this.dispatchEvent(new Event('add')); }
neelkamath/duo-ludio
src/ts/web_components/components/track-data.ts
TypeScript
MethodDeclaration
private getButton(): ButtonElement { const button = document.createElement('vaadin-button'); button.innerHTML = '<iron-icon icon="vaadin:plus" slot="prefix"></iron-icon> Add to category'; button.addEventListener('click', () => this.dispatchAdd()); return button; }
neelkamath/duo-ludio
src/ts/web_components/components/track-data.ts
TypeScript
MethodDeclaration
private getFrequency(): HTMLHeadingElement { let text = ''; if ('solfeggioFrequency' in this.track) { text = `${this.track.binauralBeatFrequency} Hz (${this.track.solfeggioFrequency} Hz Solfeggio)`; } else { text = `${this.track.frequency} Hz`; } const h2 = document.createElement('h2'); h2.textContent = `Frequency: ${text}`; return h2; }
neelkamath/duo-ludio
src/ts/web_components/components/track-data.ts
TypeScript
FunctionDeclaration
// todo this is only for web now export function getScreenSize (): ISize { return { width: window.innerWidth, height: window.innerHeight }; }
theajack/canvas-render-html
src/adapter/index.ts
TypeScript
FunctionDeclaration
export function getCanvas (canvas?: HTMLCanvasElement): HTMLCanvasElement { if (canvas) return canvas; canvas = document.createElement('canvas'); document.body.appendChild(canvas); return canvas; }
theajack/canvas-render-html
src/adapter/index.ts
TypeScript
FunctionDeclaration
/** * Specifies information about the proximity placement group. */ export function getProximityPlacementGroup(args: GetProximityPlacementGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetProximityPlacementGroupResult> { if (!opts) { opts = {} } if (!opts.version) { opts.version = utilities.getVersion(); } return pulumi.runtime.invoke("azure-native:compute/v20181001:getProximityPlacementGroup", { "proximityPlacementGroupName": args.proximityPlacementGroupName, "resourceGroupName": args.resourceGroupName, }, opts); }
polivbr/pulumi-azure-native
sdk/nodejs/compute/v20181001/getProximityPlacementGroup.ts
TypeScript
InterfaceDeclaration
export interface GetProximityPlacementGroupArgs { /** * The name of the proximity placement group. */ proximityPlacementGroupName: string; /** * The name of the resource group. */ resourceGroupName: string; }
polivbr/pulumi-azure-native
sdk/nodejs/compute/v20181001/getProximityPlacementGroup.ts
TypeScript
InterfaceDeclaration
/** * Specifies information about the proximity placement group. */ export interface GetProximityPlacementGroupResult { /** * A list of references to all availability sets in the proximity placement group. */ readonly availabilitySets: outputs.compute.v20181001.SubResourceResponse[]; /** * Resource Id */ readonly id: string; /** * Resource location */ readonly location: string; /** * Resource name */ readonly name: string; /** * Specifies the type of the proximity placement group. <br><br> Possible values are: <br><br> **Standard** : Co-locate resources within an Azure region or Availability Zone. <br><br> **Ultra** : For future use. */ readonly proximityPlacementGroupType?: string; /** * Resource tags */ readonly tags?: {[key: string]: string}; /** * Resource type */ readonly type: string; /** * A list of references to all virtual machine scale sets in the proximity placement group. */ readonly virtualMachineScaleSets: outputs.compute.v20181001.SubResourceResponse[]; /** * A list of references to all virtual machines in the proximity placement group. */ readonly virtualMachines: outputs.compute.v20181001.SubResourceResponse[]; }
polivbr/pulumi-azure-native
sdk/nodejs/compute/v20181001/getProximityPlacementGroup.ts
TypeScript
InterfaceDeclaration
// ==================================================== // GraphQL query operation: PipelineOverviewQuery // ==================================================== export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_inputs_definition { __typename: "InputDefinition"; name: string; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_inputs_dependsOn_definition_type { __typename: "RegularDagsterType" | "ListDagsterType" | "NullableDagsterType"; displayName: string; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_inputs_dependsOn_definition { __typename: "OutputDefinition"; name: string; type: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_inputs_dependsOn_definition_type; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_inputs_dependsOn_solid { __typename: "Solid"; name: string; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_inputs_dependsOn { __typename: "Output"; definition: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_inputs_dependsOn_definition; solid: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_inputs_dependsOn_solid; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_inputs { __typename: "Input"; definition: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_inputs_definition; dependsOn: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_inputs_dependsOn[]; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_outputs_definition { __typename: "OutputDefinition"; name: string; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_outputs_dependedBy_solid { __typename: "Solid"; name: string; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_outputs_dependedBy_definition_type { __typename: "RegularDagsterType" | "ListDagsterType" | "NullableDagsterType"; displayName: string; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_outputs_dependedBy_definition { __typename: "InputDefinition"; name: string; type: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_outputs_dependedBy_definition_type; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_outputs_dependedBy { __typename: "Input"; solid: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_outputs_dependedBy_solid; definition: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_outputs_dependedBy_definition; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_outputs { __typename: "Output"; definition: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_outputs_definition; dependedBy: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_outputs_dependedBy[]; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_definition_SolidDefinition_metadata { __typename: "MetadataItemDefinition"; key: string; value: string; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_definition_SolidDefinition_inputDefinitions_type { __typename: "RegularDagsterType" | "ListDagsterType" | "NullableDagsterType"; displayName: string; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_definition_SolidDefinition_inputDefinitions { __typename: "InputDefinition"; name: string; type: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_definition_SolidDefinition_inputDefinitions_type; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_definition_SolidDefinition_outputDefinitions_type { __typename: "RegularDagsterType" | "ListDagsterType" | "NullableDagsterType"; displayName: string; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_definition_SolidDefinition_outputDefinitions { __typename: "OutputDefinition"; name: string; type: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_definition_SolidDefinition_outputDefinitions_type; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_definition_SolidDefinition_configField_configType { __typename: "RegularConfigType" | "ArrayConfigType" | "ScalarUnionConfigType" | "NullableConfigType" | "EnumConfigType" | "CompositeConfigType"; key: string; description: string | null; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_definition_SolidDefinition_configField { __typename: "ConfigTypeField"; configType: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_definition_SolidDefinition_configField_configType; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_definition_SolidDefinition { __typename: "SolidDefinition"; name: string; metadata: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_definition_SolidDefinition_metadata[]; inputDefinitions: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_definition_SolidDefinition_inputDefinitions[]; outputDefinitions: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_definition_SolidDefinition_outputDefinitions[]; configField: PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_definition_SolidDefinition_configField | null; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript
InterfaceDeclaration
export interface PipelineOverviewQuery_pipelineSnapshotOrError_PipelineSnapshot_solidHandles_solid_definition_CompositeSolidDefinition_metadata { __typename: "MetadataItemDefinition"; key: string; value: string; }
basilvetas/dagster
js_modules/dagit/src/pipelines/types/PipelineOverviewQuery.ts
TypeScript