type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
m => ({name: m.name})
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
m => modules.some(v => v.name === m.name)
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
v => v.name === m.name
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
() => { const modules = [ {name: 'ibm-container-platform'}, {name: 'namespace'}, {name: 'namespace'}, ]; let bom: BillOfMaterialModel; beforeEach(() => { bom = new BillOfMaterial({spec: {modules}}); }); test('then should resolve modules', async () =...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
async () => { const actualResult: SingleModuleVersion[] = await classUnderTest.resolveBillOfMaterial( catalog, bom, ); expect(actualResult.length).toEqual(modules.length); const mapNames = actualResult.map(m => ({name: m.name})).filter(m => modules.some(v => v.name ...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
m => m.alias
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
() => { const modules = [ {name: 'ibm-container-platform', alias: 'cluster'}, {name: 'namespace', alias: 'tools-namespace'}, {name: 'namespace', alias: 'observability-namespace'}, ]; let bom: BillOfMaterialModel; beforeEach(() => { bom = new BillOfMaterial({spec...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
async () => { const actualResult: SingleModuleVersion[] = await classUnderTest.resolveBillOfMaterial( catalog, bom, ); expect(actualResult.length).toEqual(modules.length); const mapNames = actualResult.map(m => ({name: m.name})).filter(m => modules.some(v => v.name ...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
() => { const modules: BillOfMaterialModule[] = [ {name: 'ibm-container-platform'}, {name: 'ibm-container-platform', alias: 'mycluster'}, {name: 'namespace', alias: 'tools-namespace', dependencies: [{name: 'cluster', ref: 'mycluster'}]}, {name: 'namespace', alias: 'namespace', dep...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
async () => { const actualResult: SingleModuleVersion[] = await classUnderTest.resolveBillOfMaterial( catalog, bom, ); expect(actualResult.length).toEqual(4); expect(actualResult.map(m => m.alias)).toEqual(['cluster', 'mycluster', 'tools-namespace', 'namespace']); ...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
() => { const modules: BillOfMaterialModule[] = [ {name: 'namespace', alias: 'tools-namespace', dependencies: [{name: 'cluster', ref: 'mycluster'}]}, {name: 'namespace', alias: 'namespace', dependencies: [{name: 'cluster', ref: 'cluster'}]}, {name: 'ibm-container-platform'}, {name...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
async () => { const actualResult: SingleModuleVersion[] = await classUnderTest.resolveBillOfMaterial( catalog, bom, ); expect(actualResult.length).toEqual(4); expect(actualResult.map(m => m.alias).sort()).toEqual(['cluster', 'mycluster', 'tools-namespace', 'namespac...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
() => { const modules: BillOfMaterialModule[] = [ {name: 'ibm-vpc-subnets', alias: 'workload-subnets', variables: [{name: '_count', value: 3}, {name: 'label', value: 'workload'}]}, ]; let bom: BillOfMaterialModel; beforeEach(() => { bom = new BillOfMaterial({spec: {modules}}); ...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
async () => { const actualResult: SingleModuleVersion[] = await classUnderTest.resolveBillOfMaterial( catalog, bom, ); expect(actualResult.map(m => m.name).filter(name => name === 'ibm-vpc-gateways')).toEqual([]); }
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
m => m.name
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
name => name === 'ibm-vpc-gateways'
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
() => { const modules: BillOfMaterialModule[] = [ {name: 'ibm-vpc-subnets', alias: 'workload-subnets', variables: [{name: '_count', value: 3}, {name: 'label', value: 'workload'}]}, {name: 'ibm-vpc-gateways'}, ]; let bom: BillOfMaterialModel; beforeEach(() => { bom = new...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
async () => { const actualResult: SingleModuleVersion[] = await classUnderTest.resolveBillOfMaterial( catalog, bom, ); expect(actualResult.map(m => m.name).filter(name => name === 'ibm-vpc-gateways')).toEqual(['ibm-vpc-gateways']); }
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
() => { describe('when modules have dependencies in defined modules', () => { const modules: BillOfMaterialModule[] = [ {name: 'argocd'}, {name: 'namespace', alias: 'tools-namespace', dependencies: [{name: 'cluster', ref: 'mycluster'}]}, {name: 'artifactory'}, {name: 'ibm-cont...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
() => { const modules: BillOfMaterialModule[] = [ {name: 'argocd'}, {name: 'namespace', alias: 'tools-namespace', dependencies: [{name: 'cluster', ref: 'mycluster'}]}, {name: 'artifactory'}, {name: 'ibm-container-platform'}, ]; let bomModules: BillOfMaterialModule[]; ...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
() => { const bom = new BillOfMaterial({spec: {modules}}); bomModules = BillOfMaterial.getModules(bom); }
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
async () => { const actualResult = await sortModules(Catalog.fromModel(catalog), bomModules); expect(actualResult.map(m => m.name)).toEqual(['ibm-container-platform', 'namespace', 'argocd', 'artifactory']) }
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
() => { const modules: BillOfMaterialModule[] = [ {name: 'argocd'}, {name: 'ibm-transit-gateway'}, {name: 'namespace', alias: 'tools-namespace', dependencies: [{name: 'cluster', ref: 'mycluster'}]}, {name: 'artifactory'}, {name: 'ibm-container-platform'}, ]; l...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
async () => { const actualResult = await sortModules(Catalog.fromModel(catalog), bomModules); expect(actualResult.map(m => m.name)).toEqual(['ibm-container-platform', 'namespace', 'argocd', 'artifactory', 'ibm-transit-gateway']) }
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
() => { const testCatalog: CatalogModel = { categories: [{ category: 'test', selection: 'multiple', modules: [{ id: 'github.com/validation-test', name: 'validation-test', platforms: [], category: 'test', versions: [{ versio...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
() => { test('then should throw an error', async () => { const yaml: string = `variables: - name: variable1 value: val - name: myvariable value: false`; return classUnderTest.validateBillOfMaterialModuleConfigYaml(testCatalog, 'validation-test', yaml) .then(val => expect(va...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
async () => { const yaml: string = `variables: - name: variable1 value: val - name: myvariable value: false`; return classUnderTest.validateBillOfMaterialModuleConfigYaml(testCatalog, 'validation-test', yaml) .then(val => expect(val).toEqual('Should fail')) .catch((err:...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
val => expect(val).toEqual('Should fail')
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
(err: BillOfMaterialModuleConfigError) => { expect(err.unmatchedVariableNames).toEqual(['myvariable']) expect(err.availableVariableNames).toEqual(['variable1', 'variable2']) }
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
() => { test('then should throw an error', async () => { const yaml: string = `dependencies: - name: dep1 ref: test - name: mydep ref: test2`; return classUnderTest.validateBillOfMaterialModuleConfigYaml(testCatalog, 'validation-test', yaml) .then(val => expect(val).toEqual...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
async () => { const yaml: string = `dependencies: - name: dep1 ref: test - name: mydep ref: test2`; return classUnderTest.validateBillOfMaterialModuleConfigYaml(testCatalog, 'validation-test', yaml) .then(val => expect(val).toEqual('Should fail')) .catch((err: BillOfMat...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
(err: BillOfMaterialModuleConfigError) => { expect(err.unmatchedDependencyNames).toEqual(['mydep']) expect(err.availableDependencyNames).toEqual(['dep1', 'dep2']) }
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
() => { test('then should throw an error', async () => { const yaml: string = `dependencies: - name: dep1 ref: test - name: mydep ref: test2`; return classUnderTest.validateBillOfMaterialModuleConfigYaml(testCatalog, 'validation-test', yaml) .then(val => expect(val).toEq...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
async () => { const yaml: string = `dependencies: - name: dep1 ref: test - name: mydep ref: test2`; return classUnderTest.validateBillOfMaterialModuleConfigYaml(testCatalog, 'validation-test', yaml) .then(val => expect(val).toEqual('Should fail')) .catch((err) => { ...
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ArrowFunction
(err) => { expect(err).toBeDefined(); }
csantanapr/iascable
src/services/module-selector/module-selector.impl.spec.ts
TypeScript
ClassDeclaration
/** * <p>Returns information about an Amazon Lex bot alias. For more information * about aliases, see <a>versioning-aliases</a>.</p> * <p>This operation requires permissions for the * <code>lex:GetBotAlias</code> action.</p> */ export class GetBotAliasCommand extends $Command< GetBotAliasC...
alsiola/aws-sdk-js-v3
clients/client-lex-model-building-service/commands/GetBotAliasCommand.ts
TypeScript
TypeAliasDeclaration
export type GetBotAliasCommandInput = GetBotAliasRequest;
alsiola/aws-sdk-js-v3
clients/client-lex-model-building-service/commands/GetBotAliasCommand.ts
TypeScript
TypeAliasDeclaration
export type GetBotAliasCommandOutput = GetBotAliasResponse & __MetadataBearer;
alsiola/aws-sdk-js-v3
clients/client-lex-model-building-service/commands/GetBotAliasCommand.ts
TypeScript
MethodDeclaration
/** * @internal */ resolveMiddleware( clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LexModelBuildingServiceClientResolvedConfig, options?: __HttpHandlerOptions ): Handler<GetBotAliasCommandInput, GetBotAliasCommandOutput> { if (!this.resolved) { this.m...
alsiola/aws-sdk-js-v3
clients/client-lex-model-building-service/commands/GetBotAliasCommand.ts
TypeScript
MethodDeclaration
private serialize(input: GetBotAliasCommandInput, context: __SerdeContext): Promise<__HttpRequest> { return serializeAws_restJson1GetBotAliasCommand(input, context); }
alsiola/aws-sdk-js-v3
clients/client-lex-model-building-service/commands/GetBotAliasCommand.ts
TypeScript
MethodDeclaration
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetBotAliasCommandOutput> { return deserializeAws_restJson1GetBotAliasCommand(output, context); }
alsiola/aws-sdk-js-v3
clients/client-lex-model-building-service/commands/GetBotAliasCommand.ts
TypeScript
FunctionDeclaration
export declare function isComplexPluginOutput(obj: Types.PluginOutput): obj is Types.ComplexPluginOutput;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
InterfaceDeclaration
interface GenerateOptions { filename: string; plugins: Types.ConfiguredPlugin[]; schema: DocumentNode; schemaAst?: GraphQLSchema; documents: Types.DocumentFile[]; config: { [key: string]: any; }; pluginMap: { [name: strin...
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
InterfaceDeclaration
interface Config { schema?: InstanceOrArray<Schema>; require?: RequireExtension; customFetch?: string; documents?: InstanceOrArray<OperationDocument>; config?: { [key: string]: any; }; generates: { [output: string]: OutputConfig |...
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
InterfaceDeclaration
export interface CodegenPlugin<T = any> { plugin: PluginFunction<T>; addToSchema?: AddToSchemaResult | ((config: T) => AddToSchemaResult); validate?: PluginValidateFn; }
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type FileOutput = { filename: string; content: string; hooks?: { beforeOneFileWrite?: LifecycleHooksDefinition<string | string[]>['beforeOneFileWrite']; afterOneFileWrite?: LifecycleHooksDefinition<string | string[]>['afterOneFileWrite']; }; };
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type DocumentFile = Source;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type ObjectMap<T = any> = { [key: string]: T; };
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type Promisable<T> = T | Promise<T>;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type InstanceOrArray<T> = T | T[];
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type SchemaWithLoader = { [schemaString: string]: { loader: string; }; };
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type UrlSchema = string | { [url: string]: { headers?: { [headerName: string]: string; }; }; };
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type LocalSchemaPath = string;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type SchemaGlobPath = string;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type Schema = UrlSchema | LocalSchemaPath | SchemaGlobPath | SchemaWithLoader;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type OperationDocumentGlobPath = string;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type CustomDocumentLoader = { [path: string]: { loader: string; }; };
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type OperationDocument = OperationDocumentGlobPath | CustomDocumentLoader;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type PluginConfig = InstanceOrArray<string> | ObjectMap;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type ConfiguredPlugin = { [name: string]: PluginConfig; };
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type NamedPlugin = string;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type NamedPreset = string;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type OutputConfig = InstanceOrArray<NamedPlugin | ConfiguredPlugin>;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type ConfiguredOutput = { plugins: OutputConfig; preset?: string | OutputPreset; presetConfig?: { [key: string]: any; }; overwrite?: boolean; documents?: InstanceOrArray<OperationDocument>; schema?: InstanceOrArray<Schema>; config?: P...
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type PresetFnArgs<Config = any, PluginConfig = { [key: string]: any; }> = { presetConfig: Config; baseOutputDir: string; plugins: Types.ConfiguredPlugin[]; schema: DocumentNode; schemaAst?: GraphQLSchema; documents: Types.DocumentFile[]; conf...
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type OutputPreset<TPresetConfig = any> = { buildGeneratesSection: (options: PresetFnArgs<TPresetConfig>) => Promisable<GenerateOptions[]>; };
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type RequireExtension = InstanceOrArray<string>;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type PackageLoaderFn<TExpectedResult> = (name: string) => Promisable<TExpectedResult>;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type ComplexPluginOutput = { content: string; prepend?: string[]; append?: string[]; };
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type PluginOutput = string | ComplexPluginOutput;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
type LifecycleHooksDefinition<T = string | string[]> = { afterStart: T; beforeDone: T; onWatchTriggered: T; onError: T; afterOneFileWrite: T; afterAllFileWrite: T; beforeOneFileWrite: T; beforeAllFileWrite: T; [key: string]: T; };
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
export declare type PluginFunction<T = any> = (schema: GraphQLSchema, documents: Types.DocumentFile[], config: T, info?: { outputFile?: string; allPlugins?: Types.ConfiguredPlugin[]; [key: string]: any; }) => Types.Promisable<Types.PluginOutput>;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
export declare type PluginValidateFn<T = any> = (schema: GraphQLSchema, documents: Types.DocumentFile[], config: T, outputFile: string, allPlugins: Types.ConfiguredPlugin[]) => Types.Promisable<void>;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
TypeAliasDeclaration
export declare type AddToSchemaResult = string | DocumentNode | undefined;
johnf/amplify-cli-action
node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers/types.d.ts
TypeScript
ArrowFunction
() => { let component: SponsoredLeaguesComponent; let fixture: ComponentFixture<SponsoredLeaguesComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ SponsoredLeaguesComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createCo...
vpassapera/freetop8
src/app/leagues/sponsored-leagues/sponsored-leagues.component.spec.ts
TypeScript
ArrowFunction
() => { TestBed.configureTestingModule({ declarations: [ SponsoredLeaguesComponent ] }) .compileComponents(); }
vpassapera/freetop8
src/app/leagues/sponsored-leagues/sponsored-leagues.component.spec.ts
TypeScript
ArrowFunction
() => { fixture = TestBed.createComponent(SponsoredLeaguesComponent); component = fixture.componentInstance; fixture.detectChanges(); }
vpassapera/freetop8
src/app/leagues/sponsored-leagues/sponsored-leagues.component.spec.ts
TypeScript
ArrowFunction
command => { this.runInTerminal(command, terminalName); }
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
ArrowFunction
(pattern: string) => pattern && pattern.length > 0 && new RegExp(pattern).test(relativeFile)
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
ArrowFunction
cfg => { let matchPattern = cfg.match || ''; let negatePattern = cfg.notMatch || ''; // if no match pattern was provided, or if match pattern succeeds let isMatch = matchPattern.length === 0 || match(matchPattern); // negation has to be ex...
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
ArrowFunction
(sub: string, envName: string) => { return process.env[envName]; }
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
ArrowFunction
x => x.useShortcut === true
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
ArrowFunction
x => x.useShortcut !== true
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
ClassDeclaration
export class RunOnSaveExtension { private outputChannel: vscode.OutputChannel; private context: vscode.ExtensionContext; constructor(context: vscode.ExtensionContext) { this.context = context; this.outputChannel = vscode.window.createOutputChannel("Save and Run Reg"); } private ru...
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
InterfaceDeclaration
export interface ICommand { match?: string; notMatch?: string; cmd: string; isAsync: boolean; useShortcut?: boolean; silent?: boolean; }
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
InterfaceDeclaration
interface IConfig { shell: string; autoClearConsole: boolean; commands: ICommand[]; }
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
MethodDeclaration
private runInTerminal(command, name) { let editor = vscode.window.activeTextEditor let column = editor.viewColumn; Executor.runInTerminal(command, name) }
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
MethodDeclaration
private runAllInTerminal(commands: ICommand[], terminalName): void { commands.forEach(command => { this.runInTerminal(command, terminalName); }); }
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
MethodDeclaration
private loadConfig() { const uri = vscode.window.activeTextEditor.document.uri; let config = vscode.workspace.getConfiguration("", uri); let key = "saveAndRunReg" let saveAndRunReg = config.get<IConfig>(key); return saveAndRunReg; }
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
MethodDeclaration
public showOutputMessage(message?: string): void { message = message || `Save and Run Reg ${this.isEnabled ? "enabled" : "disabled"}.`; this.outputChannel.appendLine(message); }
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
MethodDeclaration
public showStatusMessage(message: string): vscode.Disposable { this.showOutputMessage(message); return vscode.window.setStatusBarMessage(message); }
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
MethodDeclaration
private getWorkspaceFolder() { const editor = vscode.window.activeTextEditor; const resource = editor.document.uri; const rootFolder = workspace.getWorkspaceFolder(resource); return rootFolder }
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
MethodDeclaration
private findActiveCommands(config: IConfig, document: vscode.TextDocument, onlyShortcut: boolean) { const rootFolder = this.getWorkspaceFolder(); const root = rootFolder.uri.path; const relativeFile = "." + document.fileName.replace(root, ""); let match = (pattern: string) => pattern &...
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
MethodDeclaration
public runCommands(document: vscode.TextDocument, onlyShortcut: boolean): void { let config = this.loadConfig(); if (config.autoClearConsole) { this.outputChannel.clear(); } if (!this.isEnabled || config.commands.length === 0) { this.showStatusMessage(""); ...
onpaik/vscode-save-and-run-reg
src/runner.ts
TypeScript
TypeAliasDeclaration
export type IMoreOptions = OtherCommonUnion.IOtherCommonUnion;
JoshStern/thrift-typescript
src/tests/unit/fixtures/thrift-server/generated/com/test/common/MoreOptions.ts
TypeScript
TypeAliasDeclaration
export type IMoreOptionsArgs = OtherCommonUnion.IOtherCommonUnionArgs;
JoshStern/thrift-typescript
src/tests/unit/fixtures/thrift-server/generated/com/test/common/MoreOptions.ts
TypeScript
InterfaceDeclaration
/** * Represents a deferred promise, exposing the resolve and reject methods. * * @type T the type of the {@link CompletablePromise}. */ export interface DeferredPromise<T> { /** * Method to resolve the promise. * * @param value the resolution value. */ resolve: (value: T | PromiseLike...
FlamingTuri/completable-promise
src/deferred-promise.ts
TypeScript
ArrowFunction
(note: any) => { const pathSepRegExp = new RegExp(`\\${path.sep}`, 'g'); const relativeResourceWorkDir = utils.getRelativeResourceDir(note).replace(pathSepRegExp, yarleOptions.pathSeparator); const absoluteResourceWorkDir = utils.getAbsoluteResourceDir(note); // .replace(pathSepRegExp,yarleOptions.pathSeparator)...
akosbalasko/yarle
src/process-resources.ts
TypeScript
ArrowFunction
(note: any): string => { let resourceHashes: any = {}; let updatedContent = cloneDeep(note.content); const {absoluteResourceWorkDir, relativeResourceWorkDir} = getResourceWorkDirs(note); utils.loggerInfo(`relative resource work dir: ${relativeResourceWorkDir}`); utils.loggerInfo(`absolute resourc...
akosbalasko/yarle
src/process-resources.ts
TypeScript
ArrowFunction
(content: string, resourceHashes: any, hash: any, workDir: string): string => { const src = `${workDir}${yarleOptions.pathSeparator}${resourceHashes[hash].fileName.replace(/ /g, '\ ')}`; utils.loggerInfo(`mediaReference src ${src} added`); let updatedContent = cloneDeep(content); const replace = `<en-media ([^...
akosbalasko/yarle
src/process-resources.ts
TypeScript