type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
() => { api.get<GenreResponseProps[]>('genres').then(response => { setGenres(response.data) }); }
DaianCosta/ignite-desafio-7
src/components/SideBar.tsx
TypeScript
ArrowFunction
response => { setGenres(response.data) }
DaianCosta/ignite-desafio-7
src/components/SideBar.tsx
TypeScript
InterfaceDeclaration
interface SideBarProps { selectedGenreId: number; buttonClickCallback: (args: any) => void; }
DaianCosta/ignite-desafio-7
src/components/SideBar.tsx
TypeScript
InterfaceDeclaration
interface Settings { /* * FixedColumns extension options */ fixedColumns?: boolean | FixedColumnsSettings; }
DKorosec/DefinitelyTyped
types/datatables.net-fixedcolumns/index.d.ts
TypeScript
InterfaceDeclaration
interface FixedColumnsSettings { /* * Row height matching algorithm to use * * The algorithm to use. This can be one of (see below for full description): * 'none' | 'semiauto' | 'auto' */ heightMatch?: string; /* * The number of columns on ...
DKorosec/DefinitelyTyped
types/datatables.net-fixedcolumns/index.d.ts
TypeScript
InterfaceDeclaration
interface Api { fixedColumns: FixedColumnsMethodsModel; }
DKorosec/DefinitelyTyped
types/datatables.net-fixedcolumns/index.d.ts
TypeScript
InterfaceDeclaration
interface FixedColumnsMethodsModel { /* * Get FixedColumns Api */ fixedColumns(): FixedColumnsMethods; }
DKorosec/DefinitelyTyped
types/datatables.net-fixedcolumns/index.d.ts
TypeScript
InterfaceDeclaration
interface FixedColumnsMethods extends Api { /* * Update the data shown in the FixedColumns */ update(): Api; /* * Redraw the fixed columns based on new table size */ relayout(): Api; /* * @Deprecated(use dt.row(this).index()) * G...
DKorosec/DefinitelyTyped
types/datatables.net-fixedcolumns/index.d.ts
TypeScript
InterfaceDeclaration
/* */ interface CellIndex { row: number; column: number; columnVisible: number; }
DKorosec/DefinitelyTyped
types/datatables.net-fixedcolumns/index.d.ts
TypeScript
InterfaceDeclaration
interface RowsMethods { /* * Recalculate the height of one or more rows after a data change */ recalcHeight(): Api; }
DKorosec/DefinitelyTyped
types/datatables.net-fixedcolumns/index.d.ts
TypeScript
ClassDeclaration
@Component({ selector: 'app-header', styleUrls: ['./header.component.scss'], templateUrl: './header.component.html' }) export class HeaderComponent { isCollapsed: boolean = true; sideNavOpen: boolean = false; openClass: string = 'st-menu-open'; constructor(private router: Router, private a...
jpwiddy/NG-DotNetCore
Client/modules/shared/nav/header.component.ts
TypeScript
MethodDeclaration
toggleNav() { this.isCollapsed = !this.isCollapsed; }
jpwiddy/NG-DotNetCore
Client/modules/shared/nav/header.component.ts
TypeScript
ArrowFunction
async () => { // getting the nest js app const application = await NestFactory.createApplicationContext(AppModule); const emailTemplateService = application.get(EmailTemplateService); Logger.log('INIT'); const result = await emailTemplateService.generateTemplateHtml({ type: TemplateType.CONFIRMATION_E...
Cristiandi/basic-acl
src/scripts/check-generateTemplateHtml-function/index.ts
TypeScript
InterfaceDeclaration
export interface ERC1967UpgradeUpgradeableInterface extends utils.Interface { contractName: 'ERC1967UpgradeUpgradeable'; functions: {}; events: { 'AdminChanged(address,address)': EventFragment; 'BeaconUpgraded(address)': EventFragment; 'Upgraded(address)': EventFragment; }; getEvent(nameOrSigna...
jonathanchowjh/anchor-web-app
app/src/@libs/typechain-types/ERC1967UpgradeUpgradeable.ts
TypeScript
InterfaceDeclaration
export interface ERC1967UpgradeUpgradeable extends BaseContract { contractName: 'ERC1967UpgradeUpgradeable'; connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise<this>; interface: ERC1967UpgradeUpgradeableInterface; queryFilter<TEvent exten...
jonathanchowjh/anchor-web-app
app/src/@libs/typechain-types/ERC1967UpgradeUpgradeable.ts
TypeScript
TypeAliasDeclaration
export type AdminChangedEvent = TypedEvent< [string, string], { previousAdmin: string; newAdmin: string } >;
jonathanchowjh/anchor-web-app
app/src/@libs/typechain-types/ERC1967UpgradeUpgradeable.ts
TypeScript
TypeAliasDeclaration
export type AdminChangedEventFilter = TypedEventFilter<AdminChangedEvent>;
jonathanchowjh/anchor-web-app
app/src/@libs/typechain-types/ERC1967UpgradeUpgradeable.ts
TypeScript
TypeAliasDeclaration
export type BeaconUpgradedEvent = TypedEvent<[string], { beacon: string }>;
jonathanchowjh/anchor-web-app
app/src/@libs/typechain-types/ERC1967UpgradeUpgradeable.ts
TypeScript
TypeAliasDeclaration
export type BeaconUpgradedEventFilter = TypedEventFilter<BeaconUpgradedEvent>;
jonathanchowjh/anchor-web-app
app/src/@libs/typechain-types/ERC1967UpgradeUpgradeable.ts
TypeScript
TypeAliasDeclaration
export type UpgradedEvent = TypedEvent<[string], { implementation: string }>;
jonathanchowjh/anchor-web-app
app/src/@libs/typechain-types/ERC1967UpgradeUpgradeable.ts
TypeScript
TypeAliasDeclaration
export type UpgradedEventFilter = TypedEventFilter<UpgradedEvent>;
jonathanchowjh/anchor-web-app
app/src/@libs/typechain-types/ERC1967UpgradeUpgradeable.ts
TypeScript
ClassDeclaration
class Figure { primitive: string; color: string; }
hpmiguel/aframe-editor-scene
sprint2-cloning/src/models/Figures.ts
TypeScript
ClassDeclaration
class Cone extends Figure { 'radius-bottom': Number; }
hpmiguel/aframe-editor-scene
sprint2-cloning/src/models/Figures.ts
TypeScript
ClassDeclaration
class Cylinder extends Figure { radius: Number; height: Number; }
hpmiguel/aframe-editor-scene
sprint2-cloning/src/models/Figures.ts
TypeScript
ClassDeclaration
class Sphere extends Figure { radius: Number; }
hpmiguel/aframe-editor-scene
sprint2-cloning/src/models/Figures.ts
TypeScript
ClassDeclaration
class Rectangle extends Figure { height: Number; width: Number; }
hpmiguel/aframe-editor-scene
sprint2-cloning/src/models/Figures.ts
TypeScript
TypeAliasDeclaration
type Figures = Cone | Cylinder | Sphere | Rectangle;
hpmiguel/aframe-editor-scene
sprint2-cloning/src/models/Figures.ts
TypeScript
ArrowFunction
() => { beforeEach(() => { TestBed.configureTestingModule({ providers: [GenerateGolangService] }); }); it('should be created', inject([GenerateGolangService], (service: GenerateGolangService) => { expect(service).toBeTruthy(); })); }
tpps88206/michael-quickly-generate-data-structure
src/app/service/generate-golang.service.spec.ts
TypeScript
ArrowFunction
() => { TestBed.configureTestingModule({ providers: [GenerateGolangService] }); }
tpps88206/michael-quickly-generate-data-structure
src/app/service/generate-golang.service.spec.ts
TypeScript
ArrowFunction
(service: GenerateGolangService) => { expect(service).toBeTruthy(); }
tpps88206/michael-quickly-generate-data-structure
src/app/service/generate-golang.service.spec.ts
TypeScript
ArrowFunction
() => { beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ RouterTestingModule ], declarations: [ AppComponent ], }).compileComponents(); })); it('should create the app', () => { const fixture = TestBed.createComponent(AppComponent); cons...
majorsaaam/codestage-time10
escuta-as-mina/src/app/app.component.spec.ts
TypeScript
ArrowFunction
() => { const fixture = TestBed.createComponent(AppComponent); const app = fixture.debugElement.componentInstance; expect(app.title).toEqual('escuta-as-mina'); }
majorsaaam/codestage-time10
escuta-as-mina/src/app/app.component.spec.ts
TypeScript
ArrowFunction
() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; expect(compiled.querySelector('h1').textContent).toContain('Welcome to escuta-as-mina!'); }
majorsaaam/codestage-time10
escuta-as-mina/src/app/app.component.spec.ts
TypeScript
FunctionDeclaration
function reduceBinaryOp(state: State, newX: Decimal): State { return { ...state, y: state.z, z: state.t, x: newX, hasInput: true, lastX: state.x, wasResult: ResultState.REGULAR, }; }
drewcsillag/ph21d
src/reduceRegular.ts
TypeScript
FunctionDeclaration
function reduceNumber(state: State, n: number): State { const hasInput = true; let y = state.y; let x = state.x; let z = state.z; let t = state.t; let xInpPrec = state.xInpPrec; let wasResult = state.wasResult; let dec = state.dec; if (wasResult !== ResultState.NONE) { if (wasResult === ResultSt...
drewcsillag/ph21d
src/reduceRegular.ts
TypeScript
FunctionDeclaration
export function reduceEex(state: State, action: Action): State { switch (action.type) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: case 9: { const eexValue = state.eexValue; const positive = eexValue.positive; const exponent = (ee...
drewcsillag/ph21d
src/reduceRegular.ts
TypeScript
FunctionDeclaration
// Copyright (c) 2020 The adrbrowsiel Authors. All rights reserved. // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this file, // you can obtain one at http://mozilla.org/MPL/2.0/. export function tilesUpdated ( state: NewTab.Gri...
adrielsand/adrbrowsiel-core
components/adrbrowsiel_new_tab_ui/state/gridSitesState.ts
TypeScript
FunctionDeclaration
export function showTilesRemovedNotice ( state: NewTab.GridSitesState, shouldShow: boolean ): NewTab.GridSitesState { state = { ...state, shouldShowSiteRemovedNotification: shouldShow } return state }
adrielsand/adrbrowsiel-core
components/adrbrowsiel_new_tab_ui/state/gridSitesState.ts
TypeScript
InterfaceDeclaration
export interface TypedWebview<M> extends Webview { postMessage(message: M): Promise<boolean>; onDidReceiveMessage: Event<M>; }
SanderRonde/VSCode-Gerrit
src/views/activityBar/review/types.ts
TypeScript
InterfaceDeclaration
export interface TypedWebviewPanel<M> extends WebviewPanel { webview: TypedWebview<M>; }
SanderRonde/VSCode-Gerrit
src/views/activityBar/review/types.ts
TypeScript
InterfaceDeclaration
export interface TypedWebviewView<T> extends WebviewView { readonly webview: TypedWebview<T>; }
SanderRonde/VSCode-Gerrit
src/views/activityBar/review/types.ts
TypeScript
InterfaceDeclaration
export interface FindUsersQuery extends FindQuery { search?: string; roles?: string[]; filter?: any; fallbackCampus?: string; }
EricArita/VietMyBrush
src/server/modules/auth/aggregates/users/interfaces/FindUsersQuery.ts
TypeScript
FunctionDeclaration
export async function getNewDisplayOrder(userId: string): Promise<number> { const maxSheet = await prisma.sheet.findFirst({ where: { userId }, orderBy: { displayOrder: 'desc' }, }) if (!maxSheet) { return 0 } return maxSheet.displayOrder + 1 }
dala00/social-board
repositories/SheetsRepository.ts
TypeScript
MethodDeclaration
/** * Initialize the client. * Performs asynchronous operations (such as authentication) and prepares the client. * This function will be called automatically when any class method is called for the * first time, but if you need to initialize it before calling an actual method, * feel free to call initia...
googleapis/googleapis-gen
google/cloud/videointelligence/v1p3beta1/videointelligence-v1p3beta1-nodejs/src/v1p3beta1/streaming_video_intelligence_service_client.ts
TypeScript
MethodDeclaration
// ------------------- // -- Service calls -- // ------------------- /** * Performs video annotation with bidirectional streaming: emitting results * while sending video/audio bytes. * This method is only available via the gRPC API (not REST). * * @param {object} [options] * Call options. See {@link https://goo...
googleapis/googleapis-gen
google/cloud/videointelligence/v1p3beta1/videointelligence-v1p3beta1-nodejs/src/v1p3beta1/streaming_video_intelligence_service_client.ts
TypeScript
MethodDeclaration
/** * Terminate the gRPC channel and close the client. * * The client will no longer be usable and all future behavior is undefined. * @returns {Promise} A promise that resolves when the client is closed. */ close(): Promise<void> { this.initialize(); if (!this._terminated) { return this.st...
googleapis/googleapis-gen
google/cloud/videointelligence/v1p3beta1/videointelligence-v1p3beta1-nodejs/src/v1p3beta1/streaming_video_intelligence_service_client.ts
TypeScript
ArrowFunction
() => { return ( <DatabaseLayout title="Database"> <div className="p-4"> <Extensions /> </div> </DatabaseLayout>
05bmckay/supabase
studio/pages/project/[ref]/database/extensions.tsx
TypeScript
FunctionDeclaration
function buildPrefixTable(search : string) { const prefixTable = Array(search.length); let pos = 1; let cnd = 0; prefixTable[0] = -1; while ( pos < search.length) { if (search[pos] === search[cnd]) { prefixTable[pos] = prefixTable[cnd]; } else { prefixTable[pos] = cnd;...
DininduChamikara/FOSSALGO
algorithms/ar-kmp/typescript/knuth_morris_pratt.ts
TypeScript
FunctionDeclaration
function knuthMorrisPratt (phrase : string, word : string) { const phraseLength = phrase.length; const wordLength = word.length; const prefixTable = buildPrefixTable(word); const matches = []; let i = 0; let j = 0; while (i < phraseLength) { if (phrase[i] === word[j]) { i += 1; ...
DininduChamikara/FOSSALGO
algorithms/ar-kmp/typescript/knuth_morris_pratt.ts
TypeScript
FunctionDeclaration
function main () { const phrase = "ABC ABCDAB ABCDABCDABDE"; const search = "ABCDABD"; const matches = knuthMorrisPratt(phrase, search); /* eslint-disable no-console */ console.log(`Found ${matches.length} matches at positions: ${matches}`); /* eslint-enable no-console */ }
DininduChamikara/FOSSALGO
algorithms/ar-kmp/typescript/knuth_morris_pratt.ts
TypeScript
FunctionDeclaration
export function styled<T extends As, P = {}>( component: T, options?: StyledOptions, ) { const { baseStyle, ...styledOptions } = options ?? {} if (!styledOptions.shouldForwardProp) { styledOptions.shouldForwardProp = shouldForwardProp } const styledFn = emotionStyled( component as React.Component...
chr-ge/chakra-ui
packages/system/src/system.ts
TypeScript
ArrowFunction
(keymirror, key) => { if (typeof key !== "object" && typeof key !== "function") keymirror[key] = key return keymirror }
chr-ge/chakra-ui
packages/system/src/system.ts
TypeScript
ArrowFunction
({ baseStyle }) => (props) => { const { theme, layerStyle, textStyle, apply, noOfLines, isTruncated, css: cssProp, __css, sx, ...rest } = props const _layerStyle = get(theme, `layerStyles.${layerStyle}`, {}) const _textStyle = get(theme, `textStyles.${textStyle}`, {}) ...
chr-ge/chakra-ui
packages/system/src/system.ts
TypeScript
ArrowFunction
(props) => { const { theme, layerStyle, textStyle, apply, noOfLines, isTruncated, css: cssProp, __css, sx, ...rest } = props const _layerStyle = get(theme, `layerStyles.${layerStyle}`, {}) const _textStyle = get(theme, `textStyles.${textStyle}`, {}) // filter out pro...
chr-ge/chakra-ui
packages/system/src/system.ts
TypeScript
ArrowFunction
(_, prop) => prop in stylePropNames
chr-ge/chakra-ui
packages/system/src/system.ts
TypeScript
ArrowFunction
(tag) => { chakra[tag] = chakra(tag) }
chr-ge/chakra-ui
packages/system/src/system.ts
TypeScript
InterfaceDeclaration
interface StyleResolverProps extends SystemProps { __css?: SystemStyleObject sx?: SystemStyleObject theme: Dict css?: CSSObject noOfLines?: ResponsiveValue<number> isTruncated?: boolean layerStyle?: string textStyle?: string apply?: ResponsiveValue<string> }
chr-ge/chakra-ui
packages/system/src/system.ts
TypeScript
InterfaceDeclaration
interface StyledOptions { shouldForwardProp?(prop: string): boolean label?: string baseStyle?: SystemStyleObject }
chr-ge/chakra-ui
packages/system/src/system.ts
TypeScript
TypeAliasDeclaration
type StyleResolver = (params: { baseStyle?: SystemStyleObject }) => FunctionInterpolation<StyleResolverProps>
chr-ge/chakra-ui
packages/system/src/system.ts
TypeScript
TypeAliasDeclaration
export type HTMLChakraComponents = { [Tag in DOMElements]: ChakraComponent<Tag, {}> }
chr-ge/chakra-ui
packages/system/src/system.ts
TypeScript
TypeAliasDeclaration
export type HTMLChakraProps<T extends As> = Omit< PropsOf<T>, T extends "svg" ? "ref" | "children" | keyof ChakraStyleProps : "ref" | keyof ChakraStyleProps > & ChakraProps & { as?: As }
chr-ge/chakra-ui
packages/system/src/system.ts
TypeScript
TypeAliasDeclaration
type ChakraFactory = { <T extends As, P = {}>( component: T, options?: StyledOptions, ): ChakraComponent<T, P> }
chr-ge/chakra-ui
packages/system/src/system.ts
TypeScript
ArrowFunction
(props) => props.showToolsContainer ? css` & { z-index: 2; transition: transform 300ms; transform: translateY(-100%); @media (max-width: 490px) { transform: translateY(3%); } } ` : ''
sbmeek/tq
client/src/components/templateEditor/TemplateEditor.style.tsx
TypeScript
ArrowFunction
(props) => props.shouldAnimToolToggle ? css` & { animation: ${contToggleOpt} 400ms; } }` : ''
sbmeek/tq
client/src/components/templateEditor/TemplateEditor.style.tsx
TypeScript
TypeAliasDeclaration
type AnswerOptsMenuPropsType = { shouldAnimToolToggle: boolean; showToolsContainer: boolean; };
sbmeek/tq
client/src/components/templateEditor/TemplateEditor.style.tsx
TypeScript
ArrowFunction
( fn: Function, retriesLeft = 3, interval = 500, ): Promise<{ default: React.ComponentType<any> }> => { return new Promise((resolve, reject) => { fn() .then(resolve) .catch((error: Error) => { // Ignore chunk cache error and retry to fetch, if cannot reload browser console.info(...
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
(resolve, reject) => { fn() .then(resolve) .catch((error: Error) => { // Ignore chunk cache error and retry to fetch, if cannot reload browser console.info(error) setTimeout(() => { if (retriesLeft === 1) { window.location.reload() return ...
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
(error: Error) => { // Ignore chunk cache error and retry to fetch, if cannot reload browser console.info(error) setTimeout(() => { if (retriesLeft === 1) { window.location.reload() return } catchChunkError(fn, retriesLeft - 1, interval).the...
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
() => { if (retriesLeft === 1) { window.location.reload() return } catchChunkError(fn, retriesLeft - 1, interval).then(resolve, reject) }
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
() => catchChunkError(() => import('../components/pages/login'))
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
() => import('../components/pages/login')
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
() => catchChunkError(() => import('../components/pages/accounts/accounts'))
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
() => import('../components/pages/accounts/accounts')
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
() => catchChunkError(() => import('../components/pages/data/data'))
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
() => import('../components/pages/data/data')
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
() => catchChunkError(() => import('../components/pages/health'))
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
() => import('../components/pages/health')
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
() => catchChunkError(() => import('../components/pages/settings'))
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
() => import('../components/pages/settings')
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
() => catchChunkError(() => import('../components/pages/analytics/analytics'))
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
() => import('../components/pages/analytics/analytics')
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
() => ( <BrowserRouter history={history}> <React.Suspense fallback
joshbalfour/foundations
packages/data-warehouse/src/core/router.tsx
TypeScript
ArrowFunction
(e1, e2) => e1.startWork - e2.startWork
oliver2619/timeisup
src/app/calendar/calendar.component.ts
TypeScript
ArrowFunction
e => { return { start: this.timeService.timeToDate(e.startWork), time: this.timeService.durationToDate(e.accountableWorkingTime), duration: (e.accountableWorkingTime) / (1000 * 60 * 60) }; }
oliver2619/timeisup
src/app/calendar/calendar.component.ts
TypeScript
ArrowFunction
result => { if (result === QuestionResult.YES) { this.calendarService.deleteDay(day.getMonth(), day.getDate()); } }
oliver2619/timeisup
src/app/calendar/calendar.component.ts
TypeScript
ArrowFunction
result => { if (result === QuestionResult.YES) { this.calendarService.deleteMonth(this.formGroup.value['month']); } }
oliver2619/timeisup
src/app/calendar/calendar.component.ts
TypeScript
ClassDeclaration
@Component({ selector: 't-calendar', templateUrl: './calendar.component.html', styleUrls: ['./calendar.component.scss'] }) export class CalendarComponent implements OnInit { formGroup: FormGroup; get days(): CalendarData[] { const month = parseInt(this.formGroup.value['month']); /...
oliver2619/timeisup
src/app/calendar/calendar.component.ts
TypeScript
InterfaceDeclaration
export interface CalendarData { start: Date; time: Date; duration: number; }
oliver2619/timeisup
src/app/calendar/calendar.component.ts
TypeScript
MethodDeclaration
deleteDay(day: Date): void { this.messageBoxService.question(`Do you want to delete entry for day ${day.getDate()}?`, QuestionMode.YES_NO, 'Delete day').subscribe(result => { if (result === QuestionResult.YES) { this.calendarService.deleteDay(day.getMonth(), day.getDate()); ...
oliver2619/timeisup
src/app/calendar/calendar.component.ts
TypeScript
MethodDeclaration
editDay(day: Date): void { this.router.navigate(['/calendar', day.getMonth(), day.getDate()]); }
oliver2619/timeisup
src/app/calendar/calendar.component.ts
TypeScript
MethodDeclaration
ngOnInit(): void { this.formGroup = this.formBuilder.group({}); this.formGroup.addControl('month', this.formBuilder.control(new Date().getMonth(), {})); this.formGroup.addControl('filter', this.formBuilder.control('all', {})); }
oliver2619/timeisup
src/app/calendar/calendar.component.ts
TypeScript
MethodDeclaration
removeAll(): void { this.messageBoxService.question(`Do you want to delete all entries for this month?`, QuestionMode.YES_NO, 'Delete all').subscribe(result => { if (result === QuestionResult.YES) { this.calendarService.deleteMonth(this.formGroup.value['month']); } ...
oliver2619/timeisup
src/app/calendar/calendar.component.ts
TypeScript
ArrowFunction
() => { let connections: Connection[]; before(async () => { connections = await createTestingConnections({ entities: [__dirname + "/entity/*{.js,.ts}"], enabledDrivers: ["postgres"], schemaCreate: true, dropSchemaOnConnection: true, }); ...
hisamu/typeorm
test/github-issues/485/issue-485.ts
TypeScript
ArrowFunction
async () => { connections = await createTestingConnections({ entities: [__dirname + "/entity/*{.js,.ts}"], enabledDrivers: ["postgres"], schemaCreate: true, dropSchemaOnConnection: true, }); await Promise.all(connections.map(connection => { ...
hisamu/typeorm
test/github-issues/485/issue-485.ts
TypeScript
ArrowFunction
connection => { return connection.manager.query(`CREATE extension IF NOT EXISTS "uuid-ossp"`); }
hisamu/typeorm
test/github-issues/485/issue-485.ts
TypeScript
ArrowFunction
() => Promise.all(connections.map(async connection => { const postRepository = connection.getRepository(Post); const queryRunner = connection.createQueryRunner(); const tableSchema = await queryRunner.loadTableSchema("post"); await queryRunner.release(); const post = new Post(...
hisamu/typeorm
test/github-issues/485/issue-485.ts
TypeScript
ArrowFunction
async connection => { const postRepository = connection.getRepository(Post); const queryRunner = connection.createQueryRunner(); const tableSchema = await queryRunner.loadTableSchema("post"); await queryRunner.release(); const post = new Post(); const savedPost = await...
hisamu/typeorm
test/github-issues/485/issue-485.ts
TypeScript
FunctionDeclaration
/** * Converts the provided value to string. * @param v Arbitrary value. */ export function toString(v?: any) { if (isString(v)) { return v; } else if (isUndefined(v) || isNull(v)) { return v; } else if (isNumber(v) && (isNaN(v) || isInfinite(v))) { return null; } else { return JSON.strin...
anzemur/framework-2
packages/rawmodel-utils/src/helpers/to-string.ts
TypeScript
ClassDeclaration
/** * <p>Removes one or more tags from the specified Amazon Connect Customer Profiles resource. In Connect * Customer Profiles, domains, profile object types, and integrations can be tagged.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ...
Acium-Global/aws-sdk-js-v3
clients/client-customer-profiles/commands/UntagResourceCommand.ts
TypeScript
InterfaceDeclaration
export interface UntagResourceCommandInput extends UntagResourceRequest {}
Acium-Global/aws-sdk-js-v3
clients/client-customer-profiles/commands/UntagResourceCommand.ts
TypeScript