type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration |
parseValue(minDate, dateFormat, localization) | zheyujie/semantic-ui-calendar-react | src/inputs/DatesRangeInput.tsx | TypeScript |
MethodDeclaration |
parseValue(maxDate, dateFormat, localization) | zheyujie/semantic-ui-calendar-react | src/inputs/DatesRangeInput.tsx | TypeScript |
MethodDeclaration |
private isValidDate(date: Moment): boolean {
return !isNil(date) && date.isValid();
} | zheyujie/semantic-ui-calendar-react | src/inputs/DatesRangeInput.tsx | TypeScript |
FunctionDeclaration | /**
* The AWS::KMS::Alias resource specifies a display name for a customer master key (CMK) in AWS Key Management Service (AWS KMS). You can use an alias to identify a CMK in cryptographic operations.
*/
export function getAlias(args: GetAliasArgs, opts?: pulumi.InvokeOptions): Promise<GetAliasResult> {
if (!opts... | pulumi/pulumi-aws-native | sdk/nodejs/kms/getAlias.ts | TypeScript |
FunctionDeclaration |
export function getAliasOutput(args: GetAliasOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAliasResult> {
return pulumi.output(args).apply(a => getAlias(a, opts))
} | pulumi/pulumi-aws-native | sdk/nodejs/kms/getAlias.ts | TypeScript |
ArrowFunction |
a => getAlias(a, opts) | pulumi/pulumi-aws-native | sdk/nodejs/kms/getAlias.ts | TypeScript |
InterfaceDeclaration |
export interface GetAliasArgs {
/**
* Specifies the alias name. This value must begin with alias/ followed by a name, such as alias/ExampleAlias. The alias name cannot begin with alias/aws/. The alias/aws/ prefix is reserved for AWS managed CMKs.
*/
aliasName: string;
} | pulumi/pulumi-aws-native | sdk/nodejs/kms/getAlias.ts | TypeScript |
InterfaceDeclaration |
export interface GetAliasResult {
/**
* Identifies the CMK to which the alias refers. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. You cannot specify another alias. For help finding the key ID and ARN, see Finding the Key ID and ARN in the AWS Key Management Service Developer Guide.
*... | pulumi/pulumi-aws-native | sdk/nodejs/kms/getAlias.ts | TypeScript |
InterfaceDeclaration |
export interface GetAliasOutputArgs {
/**
* Specifies the alias name. This value must begin with alias/ followed by a name, such as alias/ExampleAlias. The alias name cannot begin with alias/aws/. The alias/aws/ prefix is reserved for AWS managed CMKs.
*/
aliasName: pulumi.Input<string>;
} | pulumi/pulumi-aws-native | sdk/nodejs/kms/getAlias.ts | TypeScript |
ClassDeclaration | /**
* Represents `Pdf Template` object.
* @private
*/
export declare class PdfTemplate implements IPdfWrapper {
/**
* Stores the value of current `graphics`.
* @private
*/
private pdfGraphics;
/**
* Stores the instance of `PdfResources` class.
* @private
*/
private resou... | Platinamaster1/-_PROJECT---COTUCA | node_modules/@syncfusion/ej2-pdf-export/src/implementation/graphics/figures/pdf-template.d.ts | TypeScript |
MethodDeclaration | /**
* Gets the resources and modifies the template dictionary.
* @private
*/
getResources(): PdfResources; | Platinamaster1/-_PROJECT---COTUCA | node_modules/@syncfusion/ej2-pdf-export/src/implementation/graphics/figures/pdf-template.d.ts | TypeScript |
MethodDeclaration | /**
* `Reset` the size of the 'PdfTemplate'.
*/
reset(): void; | Platinamaster1/-_PROJECT---COTUCA | node_modules/@syncfusion/ej2-pdf-export/src/implementation/graphics/figures/pdf-template.d.ts | TypeScript |
MethodDeclaration |
reset(size: SizeF): void; | Platinamaster1/-_PROJECT---COTUCA | node_modules/@syncfusion/ej2-pdf-export/src/implementation/graphics/figures/pdf-template.d.ts | TypeScript |
ArrowFunction |
(newPostRoot: HTMLElement) => {
const clickHandler = (e: MouseEvent) => {
if ((e.target as HTMLElement).matches('[data-cpuserscript-three-columns-post-root] .new-post-activity > a')) {
closeLayout();
}
};
// The site's JS will call stopPropagation on this event, so for this dele... | 6e6e58c4/Stack-Exchange-Userscripts | Three-Columns/src/attachListenersAndOpen3ColLayoutOnTextareaFocus/closeLayoutWhenPostRefreshed.ts | TypeScript |
ArrowFunction |
(e: MouseEvent) => {
if ((e.target as HTMLElement).matches('[data-cpuserscript-three-columns-post-root] .new-post-activity > a')) {
closeLayout();
}
} | 6e6e58c4/Stack-Exchange-Userscripts | Three-Columns/src/attachListenersAndOpen3ColLayoutOnTextareaFocus/closeLayoutWhenPostRefreshed.ts | TypeScript |
ArrowFunction |
({ id }) => {
this.props.onMatch(id);
} | kpopnet/kpopnet.js | recognizer/index.tsx | TypeScript |
ArrowFunction |
(e: DragEvent) => {
e.preventDefault();
} | kpopnet/kpopnet.js | recognizer/index.tsx | TypeScript |
ClassDeclaration |
class Recognizer extends Component<RecognizerProps, {}> {
private imageUrl = "";
constructor(props: RecognizerProps) {
super(props);
this.imageUrl = URL.createObjectURL(props.file);
}
public componentWillMount() {
recognizeIdol(this.props.file).then(({ id }) => {
this.props.onMatch(id);
}... | kpopnet/kpopnet.js | recognizer/index.tsx | TypeScript |
InterfaceDeclaration |
interface RecognizerProps {
file: File;
onMatch: (idolId: string) => void;
onError: (err: Error) => void;
} | kpopnet/kpopnet.js | recognizer/index.tsx | TypeScript |
MethodDeclaration |
public componentWillMount() {
recognizeIdol(this.props.file).then(({ id }) => {
this.props.onMatch(id);
}, this.props.onError);
} | kpopnet/kpopnet.js | recognizer/index.tsx | TypeScript |
MethodDeclaration |
public render({ file }: RecognizerProps) {
return (
<div class="recognizer recognizer_loading">
<img
class="recognizer__preview"
src={this.imageUrl}
draggable={0 as any}
onDragStart={this.handleDrag}
/>
<Spinner center large />
</div>
... | kpopnet/kpopnet.js | recognizer/index.tsx | TypeScript |
ArrowFunction |
(query: string): Analysis => {
const warnings: Warning[] = [];
const result = parse(query);
if (result.error) {
throw new ParseError(result.error);
} else if (result.parse_tree) {
const stmt = result.parse_tree[0];
let parameters: Parameter[];
if (isPgRawStmt(stmt) && stmt.RawStmt.stmt) {
const innerStm... | colelawrence/typescript-sql-tagged-template-plugin | src/analysis/index.ts | TypeScript |
ClassDeclaration |
export class ParseError extends Error {
public cursorPosition: number;
constructor(error: PgParseError) {
super(error.message);
this.cursorPosition = error.cursorpos;
}
} | colelawrence/typescript-sql-tagged-template-plugin | src/analysis/index.ts | TypeScript |
InterfaceDeclaration |
export interface Analysis {
warnings: Warning[];
parameters: Parameter[];
} | colelawrence/typescript-sql-tagged-template-plugin | src/analysis/index.ts | TypeScript |
ArrowFunction |
(name) => {
return new QuestionCommentModel(name);
} | ErosMLima/survey-library | src/question_comment.ts | TypeScript |
ClassDeclaration | /**
* A Model for a comment question
*/
export class QuestionCommentModel extends Question {
constructor(name: string) {
super(name);
this.createLocalizableString("placeHolder", this);
}
protected isTextValue(): boolean {
return true;
}
/**
* The maximum text length. If it is -1, defaul value... | ErosMLima/survey-library | src/question_comment.ts | TypeScript |
MethodDeclaration |
protected isTextValue(): boolean {
return true;
} | ErosMLima/survey-library | src/question_comment.ts | TypeScript |
MethodDeclaration |
public getMaxLength(): any {
return Helpers.getMaxLength(
this.maxLength,
this.survey ? this.survey.maxTextLength : -1
);
} | ErosMLima/survey-library | src/question_comment.ts | TypeScript |
MethodDeclaration |
public getType(): string {
return "comment";
} | ErosMLima/survey-library | src/question_comment.ts | TypeScript |
MethodDeclaration |
isEmpty(): boolean {
return super.isEmpty() || this.value === "";
} | ErosMLima/survey-library | src/question_comment.ts | TypeScript |
FunctionDeclaration |
declare function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
declare function clearTimeout(timeoutId: NodeJS.Timer): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
declare function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
declare function clearInterval(intervalId: NodeJS.Timer): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
declare function setImmediate(callback: (...args: any[]) => void, ...args: any[]): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
declare function clearImmediate(immediateId: any): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function stringify<T>(obj: T, sep?: string, eq?: string, options?: StringifyOptions): string; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function parse<T extends {}>(str: string, sep?: string, eq?: string, options?: ParseOptions): T; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function escape(str: string): string; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function unescape(str: string): string; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function createServer(requestListener?: (request: IncomingMessage, response: ServerResponse) =>void ): Server; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function createClient(port?: number, host?: string): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function request(options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function get(options: any, callback?: (res: IncomingMessage) => void): ClientRequest; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function setupMaster(settings?: ClusterSettings): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function fork(env?: any): Worker; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function disconnect(callback?: Function): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration | // Event emitter
export function addListener(event: string, listener: Function): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function on(event: "disconnect", listener: (worker: Worker) => void): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function on(event: "fork", listener: (worker: Worker) => void): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function on(event: "listening", listener: (worker: Worker, address: any) => void): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function on(event: "message", listener: (worker: Worker, message: any) => void): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function on(event: "online", listener: (worker: Worker) => void): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function on(event: "setup", listener: (settings: any) => void): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function on(event: string, listener: Function): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function once(event: string, listener: Function): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function removeListener(event: string, listener: Function): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function removeAllListeners(event?: string): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function setMaxListeners(n: number): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function listeners(event: string): Function[]; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function emit(event: string, ...args: any[]): boolean; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function createGzip(options?: ZlibOptions): Gzip; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function createGunzip(options?: ZlibOptions): Gunzip; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function createDeflate(options?: ZlibOptions): Deflate; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function createInflate(options?: ZlibOptions): Inflate; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function createDeflateRaw(options?: ZlibOptions): DeflateRaw; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function createInflateRaw(options?: ZlibOptions): InflateRaw; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function createUnzip(options?: ZlibOptions): Unzip; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function deflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function deflateSync(buf: Buffer, options?: ZlibOptions): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function deflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function deflateRawSync(buf: Buffer, options?: ZlibOptions): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function gzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function gzipSync(buf: Buffer, options?: ZlibOptions): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function gunzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function gunzipSync(buf: Buffer, options?: ZlibOptions): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function inflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function inflateSync(buf: Buffer, options?: ZlibOptions): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function inflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function inflateRawSync(buf: Buffer, options?: ZlibOptions): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function unzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function unzipSync(buf: Buffer, options?: ZlibOptions): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function tmpdir(): string; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function homedir(): string; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function endianness(): string; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function hostname(): string; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function type(): string; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function platform(): string; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function arch(): string; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function release(): string; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function uptime(): number; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function loadavg(): number[]; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function totalmem(): number; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function freemem(): number; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function cpus(): CpuInfo[]; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function networkInterfaces(): {[index: string]: NetworkInterfaceInfo[]}; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function createServer(options: ServerOptions, requestListener?: Function): Server; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function request(options: RequestOptions, callback?: (res: http.IncomingMessage) =>void ): http.ClientRequest; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.