initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
61
github/codeql-action-v2/node_modules/ts-poet/build/Code.d.ts
generated
vendored
Normal file
61
github/codeql-action-v2/node_modules/ts-poet/build/Code.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
import { Node } from './Node';
|
||||
import { Options } from 'prettier';
|
||||
/** Options for `toStringWithImports`, i.e. for the top-level, per-file output. */
|
||||
export interface ToStringOpts {
|
||||
/** The intended file name of this code; used to know whether we can skip import statements that would be from our own file. */
|
||||
path?: string;
|
||||
/** Modules to use a CommonJS-in-ESM destructure fix for. */
|
||||
forceDefaultImport?: string[];
|
||||
/** Modules to use a CommonJS-in-ESM destructure fix for. */
|
||||
forceModuleImport?: string[];
|
||||
/** A top-of-file prefix, i.e. eslint disable. */
|
||||
prefix?: string;
|
||||
/** Optional per-file overrides for the prettier config, i.e. to use longer-than-normal line lengths. */
|
||||
prettierOverrides?: Options;
|
||||
/** optional importMappings */
|
||||
importMappings?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
}
|
||||
export declare class Code extends Node {
|
||||
private literals;
|
||||
private placeholders;
|
||||
trim: boolean;
|
||||
private oneline;
|
||||
constructor(literals: TemplateStringsArray, placeholders: any[]);
|
||||
/**
|
||||
* Returns the code with any necessary import statements prefixed.
|
||||
*
|
||||
* This method will also use any local `.prettierrc` settings, hence needs
|
||||
* to return a `Promise<String>`.
|
||||
*/
|
||||
toStringWithImports(opts?: ToStringOpts): Promise<string>;
|
||||
/**
|
||||
* Returns the formatted code, without any imports.
|
||||
*
|
||||
* Note that we don't use `.prettierrc` b/c that requires async I/O to resolve.
|
||||
*/
|
||||
toString(): string;
|
||||
asOneline(): Code;
|
||||
get childNodes(): unknown[];
|
||||
toCodeString(): string;
|
||||
private deepFindImports;
|
||||
private deepFindDefs;
|
||||
private deepConditionalOutput;
|
||||
private deepReplaceNamedImports;
|
||||
private generateCode;
|
||||
}
|
||||
export declare function deepGenerate(object: unknown): string;
|
||||
/**
|
||||
* Represents a symbol defined in the current file.
|
||||
*
|
||||
* We use this to know if a symbol imported from a different file is going to
|
||||
* have a namespace collision.
|
||||
*/
|
||||
export declare class Def extends Node {
|
||||
symbol: string;
|
||||
constructor(symbol: string);
|
||||
toCodeString(): string;
|
||||
/** Any potentially string/SymbolSpec/Code nested nodes within us. */
|
||||
get childNodes(): Node[];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue