type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
() => { const WIKI_NOTATION = `Just a list: # one ## two ## three ** four # five`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc( p('Just a list:'), ol( li(p('one'), ol(li(p('two')), li(p('three'))), ul(li(p('four')))), ...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `# foo **** bar # baz`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc(ol(li(p('foo'), ul(li(ul(li(ul(li(p('bar')))))))), li(p('baz')))), ); }
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `* *bold test* ** *deeper test* * normal test`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc( ul( li(p(strong('bold test')), ul(li(p(strong('deeper test'))))), li(p('normal test')), ), ...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `* Middleware Configuration * Core Collection Drivers ** JDBC Driver *** JDBC Collection Driver *** JDBC Metadata Driver **** JDBC Template Report Configuration **** JDBC URL Report Configuration ***** Generating Reports from JSP and other sources *** JDBC Query Driver`; checkPar...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = ` first item * second item second item, second part and the third section * third item ** third.one item`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc( p(' first item'), ul( li( p( ...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `h2.Just a list here # item one {noformat}a preformatted *block* and more{noformat} # second item # then {noformat}another _preformatted_ block{noformat} #- as mentioned, the above is a preformatted block # third item {noformat}and the last/preformatted/block{noformat}`; checkPar...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `# Just # Some # [link to yahoo|http://www.yahoo.com] # and # [link to atlassian|http://www.atlassian.com] # here`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc( ol( li(p('Just')), li(p('Some')), ...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `* List item one * List item two * List item three ## List item two ## List item three ## List item four ## List item five * List item six`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc( ol( li(p('List item...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `* Follow these instructions and then click *Next*.\\\\\\\\{color:red}*Tip:*{color} You can copy and paste the required information.\\\\\\\\ \\\\\\\\ !Helpful Image.jpg! \\\\\\\\ \\\\\\\\\\n\\ * Another bulleted item.`; checkParseEncodeRoundTrips( WIKI_NOTATION, defau...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
ArrowFunction
() => { const WIKI_NOTATION = `* item1 * item2 still item2 * item3 h2. header`; checkParseEncodeRoundTrips( WIKI_NOTATION, defaultSchema, WIKI_NOTATION, doc( ul( li(p('item1')), li(p('item2', hardBreak(), 'still item2')), li(p('item3')), ...
pioug/atlassian-frontend-mirror
editor/editor-wikimarkup-transformer/src/__tests__/unit/jira-tests/list.ts
TypeScript
InterfaceDeclaration
export interface AchievementTranslation { moduleName: string details: string done: string rewards: string experience: string coins: string }
InsertCoinAB/gwen-react-components
src/achievement/translations.ts
TypeScript
ArrowFunction
() => { console.info('The application was started! Kill it using Ctrl + C') }
skjaiswal1991/reactrateusonlinecms
server/index.ts
TypeScript
ClassDeclaration
@Module({ controllers: [BotsController], providers: [BotsService] }) export class BotsModule {}
joelcoronah/chat-bot-telegram
src/modules/bots/bots.module.ts
TypeScript
ArrowFunction
p => p.name === 'medianBlur'
cancerberoSgx/mirada
ojos/src/op/floodFill.ts
TypeScript
ArrowFunction
p => p.name === 'canny'
cancerberoSgx/mirada
ojos/src/op/floodFill.ts
TypeScript
ClassDeclaration
/** * This is a high level API for flood fill given color or image starting from given [seed] coords and involves several opencv operations. */ export class FloodFill extends AbstractOperation<FloodFillOptions> { name = "FloodFill" description = 'This is a high level API for flood fill given color or image start...
cancerberoSgx/mirada
ojos/src/op/floodFill.ts
TypeScript
InterfaceDeclaration
export interface FloodFillOptions extends OperationExecBaseOptions { seed: Point; preprocess?: FloodFillPreprocess[] newColorOrImage?: Scalar | number[] | Mat; connectivity?: 4 | 8; lowDiff?: Scalar | number[] upDiff?: Scalar | number[] }
cancerberoSgx/mirada
ojos/src/op/floodFill.ts
TypeScript
TypeAliasDeclaration
export type FloodFillPreprocess = ({ name: 'canny' } & CannyConcreteOptions) | ({ name: 'medianBlur' } & MedianBlurConcreteOptions)
cancerberoSgx/mirada
ojos/src/op/floodFill.ts
TypeScript
MethodDeclaration
protected _exec(o: FloodFillOptions) { const preprocess = o.preprocess || [{ name: 'medianBlur' }, { name: 'canny' }] const dst = o.dst = o.dst || new cv.Mat() o.src.copyTo(dst) const blur = preprocess.find(p => p.name === 'medianBlur') as any as MedianBlurConcreteOptions if (blur) { cv.media...
cancerberoSgx/mirada
ojos/src/op/floodFill.ts
TypeScript
ArrowFunction
() => parseMessageDescription(tokenAccessor, entityLookup)
meyfa/lifeline
test/parser/message/parse-message-description.test.ts
TypeScript
MethodDeclaration
lookupEntity (id: string): Entity | undefined { return id === foo.id ? foo : (id === bar.id ? bar : undefined) }
meyfa/lifeline
test/parser/message/parse-message-description.test.ts
TypeScript
FunctionDeclaration
export function AlertingSettings<T extends AlertingConfig>({ alertmanagerDataSources, options, onOptionsChange, }: Props<T>): JSX.Element { const alertmanagerOptions = useMemo( () => alertmanagerDataSources.map((ds) => ({ label: ds.name, value: ds.uid, imgUrl: ds.meta.info.log...
AbdulmelikKalkan/grafana
packages/grafana-ui/src/components/DataSourceSettings/AlertingSettings.tsx
TypeScript
ArrowFunction
() => alertmanagerDataSources.map((ds) => ({ label: ds.name, value: ds.uid, imgUrl: ds.meta.info.logos.small, meta: ds.meta, }))
AbdulmelikKalkan/grafana
packages/grafana-ui/src/components/DataSourceSettings/AlertingSettings.tsx
TypeScript
ArrowFunction
(ds) => ({ label: ds.name, value: ds.uid, imgUrl: ds.meta.info.logos.small, meta: ds.meta, })
AbdulmelikKalkan/grafana
packages/grafana-ui/src/components/DataSourceSettings/AlertingSettings.tsx
TypeScript
InterfaceDeclaration
interface Props<T> extends Pick<DataSourcePluginOptionsEditorProps<T>, 'options' | 'onOptionsChange'> { alertmanagerDataSources: Array<DataSourceInstanceSettings<DataSourceJsonData>>; }
AbdulmelikKalkan/grafana
packages/grafana-ui/src/components/DataSourceSettings/AlertingSettings.tsx
TypeScript
InterfaceDeclaration
interface AlertingConfig extends DataSourceJsonData { manageAlerts?: boolean; }
AbdulmelikKalkan/grafana
packages/grafana-ui/src/components/DataSourceSettings/AlertingSettings.tsx
TypeScript
ClassDeclaration
@Entity('GNTF_APLICATIVO') export class Aplicativo { @PrimaryGeneratedColumn('uuid', { name: 'ID_APLICATIVO', comment: 'Identificador do Aplicativo' }) @ApiProperty({ description: 'Identificador do Aplicativo' }) id: string; @Column({ name: 'NM_APLICATIVO', length: 100, comment: 'Nome do Aplicativo' }...
zambonFabio/apinotificacao
src/app/aplicativo/entities/aplicativo.entity.ts
TypeScript
MethodDeclaration
// @OneToMany(() => Dispositivo, (dispositivo: Dispositivo) => dispositivo.aplicativo) // @JoinColumn({ name: 'ID_APLICATIVO', referencedColumnName: 'aplicativoId' }) // dispositivos: Dispositivo[]; // @OneToMany(() => AplicativoAssunto, (aplicativoAssunto: AplicativoAssunto) => aplicativoAssunto.aplicativo) // @JoinCo...
zambonFabio/apinotificacao
src/app/aplicativo/entities/aplicativo.entity.ts
TypeScript
FunctionDeclaration
/** * Bot channel resource definition * Latest API Version: 2020-06-02. */ /** @deprecated The 'latest' version is deprecated. Please migrate to the function in the top-level module: 'azure-nextgen:botservice:listBotConnectionWithSecrets'. */ export function listBotConnectionWithSecrets(args: ListBotConnectionWithSe...
pulumi/pulumi-azure-nextgen
sdk/nodejs/botservice/latest/listBotConnectionWithSecrets.ts
TypeScript
InterfaceDeclaration
export interface ListBotConnectionWithSecretsArgs { /** * The name of the Bot Service Connection Setting resource. */ readonly connectionName: string; /** * The name of the Bot resource group in the user subscription. */ readonly resourceGroupName: string; /** * The name of...
pulumi/pulumi-azure-nextgen
sdk/nodejs/botservice/latest/listBotConnectionWithSecrets.ts
TypeScript
InterfaceDeclaration
/** * Bot channel resource definition */ export interface ListBotConnectionWithSecretsResult { /** * Entity Tag */ readonly etag?: string; /** * Specifies the resource ID. */ readonly id: string; /** * Required. Gets or sets the Kind of the resource. */ readonly k...
pulumi/pulumi-azure-nextgen
sdk/nodejs/botservice/latest/listBotConnectionWithSecrets.ts
TypeScript
FunctionDeclaration
async function setup(blsSecretNumbers: number[]): Promise<Fixture> { config = getDeployedAddresses(network.name); console.log("config:", config); console.log("Creating fixture from use wallet..."); let fx = await Fixture.create( blsSecretNumbers.length, true, config.blsLibAddress, config.vgAdd...
jzaki/bls-wallet-contracts
scripts/test/use_wallet.ts
TypeScript
FunctionDeclaration
async function main() { // setup fixture with bls wallet secret numbers let fx = await setup([ +process.env.BLS_SECRET_NUM_1, +process.env.BLS_SECRET_NUM_2, +process.env.BLS_SECRET_NUM_3 ]); config.blsAddresses = await fx.createBLSWallets(); console.log(`BlsWallet contract addresses: ${config...
jzaki/bls-wallet-contracts
scripts/test/use_wallet.ts
TypeScript
ArrowFunction
a => fx.BLSWallet.attach(a)
jzaki/bls-wallet-contracts
scripts/test/use_wallet.ts
TypeScript
ArrowFunction
error => { console.error(error); process.exit(1); }
jzaki/bls-wallet-contracts
scripts/test/use_wallet.ts
TypeScript
TypeAliasDeclaration
export type MusicAlbumReleaseType = typeof values[keyof typeof values];
martinmaillard/rdfine
vocabularies/schema/lib/MusicAlbumReleaseType.ts
TypeScript
ArrowFunction
({ currentLocale, agents, onAccountItemClick, }) => { return ( <div className={styles.root}> <EvLoginHeader wrapperStyle={styles.wrapperStyle} svgStyle={styles.svgStyle} /> <RcTypography variant="caption2" className={styles.title}> {i18n.getString('chooseAccount', ...
u9520107/ringcentral-js-widget
packages/engage-voice-widget/components/ChooseAccountPanel/ChooseAccountPanel.tsx
TypeScript
ArrowFunction
(agent) => { return ( <ListItem onClick={()
u9520107/ringcentral-js-widget
packages/engage-voice-widget/components/ChooseAccountPanel/ChooseAccountPanel.tsx
TypeScript
TypeAliasDeclaration
export type ChooseAccountPanelProps = EvChooseAccountUIProps & EvChooseAccountUIFunctions;
u9520107/ringcentral-js-widget
packages/engage-voice-widget/components/ChooseAccountPanel/ChooseAccountPanel.tsx
TypeScript
ArrowFunction
() => { browserEnv.restore(); }
Camisul/magic-js
packages/@magic-sdk/provider/test/spec/modules/rpc-provider/sendAsync.spec.ts
TypeScript
ArrowFunction
() => { const magic = createMagicSDK(); const expectedError = createInvalidArgumentError({ procedure: 'Magic.rpcProvider.sendAsync', argument: 1, expected: 'function', received: 'undefined', }); expect(() => magic.rpcProvider.sendAsync({} as any, undefined as any)).toThrow(expectedError); }
Camisul/magic-js
packages/@magic-sdk/provider/test/spec/modules/rpc-provider/sendAsync.spec.ts
TypeScript
ArrowFunction
() => magic.rpcProvider.sendAsync({} as any, undefined as any)
Camisul/magic-js
packages/@magic-sdk/provider/test/spec/modules/rpc-provider/sendAsync.spec.ts
TypeScript
ArrowFunction
() => { const magic = createMagicSDK(); const expectedError = createInvalidArgumentError({ procedure: 'Magic.rpcProvider.sendAsync', argument: 1, expected: 'function', received: 'null', }); expect(() => magic.rpcProvider.sendAsync({} as any, null as any)).toThrow(expectedError); }
Camisul/magic-js
packages/@magic-sdk/provider/test/spec/modules/rpc-provider/sendAsync.spec.ts
TypeScript
ArrowFunction
() => magic.rpcProvider.sendAsync({} as any, null as any)
Camisul/magic-js
packages/@magic-sdk/provider/test/spec/modules/rpc-provider/sendAsync.spec.ts
TypeScript
ArrowFunction
(done) => { const magic = createMagicSDK(); const postStub = jest.fn().mockImplementation(() => Promise.resolve({ hasError: false, payload: 'test' })); magic.rpcProvider.overlay.post = postStub; const payload = { jsonrpc: '2.0', id: 1, method: 'eth_call', params: ['hello world'] }; const onRequestComplete ...
Camisul/magic-js
packages/@magic-sdk/provider/test/spec/modules/rpc-provider/sendAsync.spec.ts
TypeScript
ArrowFunction
() => Promise.resolve({ hasError: false, payload: 'test' })
Camisul/magic-js
packages/@magic-sdk/provider/test/spec/modules/rpc-provider/sendAsync.spec.ts
TypeScript
ArrowFunction
(error, response) => { expect(error).toBe(null); expect(response).toEqual('test'); done(); }
Camisul/magic-js
packages/@magic-sdk/provider/test/spec/modules/rpc-provider/sendAsync.spec.ts
TypeScript
ArrowFunction
(done) => { const magic = createMagicSDK(); const postStub = jest.fn(() => Promise.resolve({ hasError: true, payload: { error: { code: -32603, message: 'test' }, result: null } }), ); magic.rpcProvider.overlay.post = postStub; const payload = { jsonrpc: '2.0', id: 1, method: 'eth_call', params: ['hello...
Camisul/magic-js
packages/@magic-sdk/provider/test/spec/modules/rpc-provider/sendAsync.spec.ts
TypeScript
ArrowFunction
() => Promise.resolve({ hasError: true, payload: { error: { code: -32603, message: 'test' }, result: null } })
Camisul/magic-js
packages/@magic-sdk/provider/test/spec/modules/rpc-provider/sendAsync.spec.ts
TypeScript
ArrowFunction
(error, response) => { expect(error.code).toBe(-32603); expect(error.rawMessage).toBe('test'); expect(response).toEqual({ error: { code: -32603, message: 'test' }, result: null }); done(); }
Camisul/magic-js
packages/@magic-sdk/provider/test/spec/modules/rpc-provider/sendAsync.spec.ts
TypeScript
ArrowFunction
(done) => { const magic = createMagicSDK(); const response1 = { hasError: false, payload: { result: 'test1' } }; const response2 = { hasError: false, payload: { result: 'test2' } }; const postStub = jest.fn().mockImplementation(() => Promise.resolve([response1, response2])); magic.rpcProvider.overlay.post =...
Camisul/magic-js
packages/@magic-sdk/provider/test/spec/modules/rpc-provider/sendAsync.spec.ts
TypeScript
ArrowFunction
() => Promise.resolve([response1, response2])
Camisul/magic-js
packages/@magic-sdk/provider/test/spec/modules/rpc-provider/sendAsync.spec.ts
TypeScript
ArrowFunction
(_, responses) => { expect(_).toBe(null); expect(responses).toEqual([ { result: 'test1', error: null }, { result: 'test2', error: null }, ]); done(); }
Camisul/magic-js
packages/@magic-sdk/provider/test/spec/modules/rpc-provider/sendAsync.spec.ts
TypeScript
ArrowFunction
(done) => { const magic = createMagicSDK(); const response1 = { hasError: true, payload: { error: { code: -32603, message: 'test1' }, result: null } }; const response2 = { hasError: true, payload: { error: { code: -32603, message: 'test2' }, result: null } }; const postStub = jest.fn().mockImplementation(() =...
Camisul/magic-js
packages/@magic-sdk/provider/test/spec/modules/rpc-provider/sendAsync.spec.ts
TypeScript
ArrowFunction
(_, responses) => { expect(_).toBe(null); expect(responses[0].error.code).toBe(-32603); expect(responses[0].error.rawMessage).toBe('test1'); expect(responses[1].error.code).toBe(-32603); expect(responses[1].error.rawMessage).toBe('test2'); done(); }
Camisul/magic-js
packages/@magic-sdk/provider/test/spec/modules/rpc-provider/sendAsync.spec.ts
TypeScript
ArrowFunction
() => { let service: ResizeServiceService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(ResizeServiceService); }); it('should be created', () => { expect(service).toBeTruthy(); }); }
Nazarov-developer/tocha
src/app/services/resize-service.service.spec.ts
TypeScript
ArrowFunction
() => { TestBed.configureTestingModule({}); service = TestBed.inject(ResizeServiceService); }
Nazarov-developer/tocha
src/app/services/resize-service.service.spec.ts
TypeScript
ArrowFunction
user=> !!user
tharunchakravarthy/reactive-angular-demo
src/app/services/auth.store.ts
TypeScript
ArrowFunction
isloggedin => !isloggedin
tharunchakravarthy/reactive-angular-demo
src/app/services/auth.store.ts
TypeScript
ArrowFunction
user => { this.subject.next(user); localStorage.setItem(AUTH_DATA,JSON.stringify(user)); }
tharunchakravarthy/reactive-angular-demo
src/app/services/auth.store.ts
TypeScript
ClassDeclaration
@Injectable({ providedIn: 'root' }) export class AuthStore { private subject = new BehaviorSubject<User>(null); user$: Observable<User> = this.subject.asObservable(); isLoggedIn$: Observable<boolean>; isLoggedOut$: Observable<boolean>; constructor(private http:HttpClient) { this.isLoggedIn$ = this.u...
tharunchakravarthy/reactive-angular-demo
src/app/services/auth.store.ts
TypeScript
MethodDeclaration
login(email: string, password: string): Observable<User>{ return this.http.post<User>("/api/login",{email,password}) .pipe( tap(user => { this.subject.next(user); localStorage.setItem(AUTH_DATA,JSON.stringify(user)); }), ...
tharunchakravarthy/reactive-angular-demo
src/app/services/auth.store.ts
TypeScript
MethodDeclaration
logout() { this.subject.next(null); localStorage.removeItem(AUTH_DATA); }
tharunchakravarthy/reactive-angular-demo
src/app/services/auth.store.ts
TypeScript
ArrowFunction
res=>{ this.driverlicenses = res; }
mikek1337/Traffic_Admin_ui
src/app/pages/forms/drivers/drivers.component.ts
TypeScript
ArrowFunction
res=>{ this.subcitys = res; }
mikek1337/Traffic_Admin_ui
src/app/pages/forms/drivers/drivers.component.ts
TypeScript
ArrowFunction
res=>{ this.driverrelations = res; }
mikek1337/Traffic_Admin_ui
src/app/pages/forms/drivers/drivers.component.ts
TypeScript
ArrowFunction
res=>{ this.driverxps = res; }
mikek1337/Traffic_Admin_ui
src/app/pages/forms/drivers/drivers.component.ts
TypeScript
ArrowFunction
res=>{ this.drivereds = res; }
mikek1337/Traffic_Admin_ui
src/app/pages/forms/drivers/drivers.component.ts
TypeScript
ArrowFunction
res=>{ if(res!=null) { this.driverid.push(res); console.log("sent") this.driver = new driver(); this.driversprocessed++; } }
mikek1337/Traffic_Admin_ui
src/app/pages/forms/drivers/drivers.component.ts
TypeScript
ArrowFunction
res=>{ if(res!=null) { this.driverid.push(res); this.uiservice.showToast("success","Drivers added",""); console.log("sent") this.route.navigateByUrl("pages/forms/vehicle/"+this.driver.incidentId+"/"+this.driverid); console.log(this.driverid); ...
mikek1337/Traffic_Admin_ui
src/app/pages/forms/drivers/drivers.component.ts
TypeScript
ArrowFunction
res=>{ this.driver.incidentId = res.id; }
mikek1337/Traffic_Admin_ui
src/app/pages/forms/drivers/drivers.component.ts
TypeScript
ClassDeclaration
@Component({ selector: 'ngx-drivers', templateUrl: './drivers.component.html', styleUrls: ['./drivers.component.scss'] }) export class DriversComponent implements OnInit { constructor(private route:Router,private http:HttpService,private router:ActivatedRoute,private storage:StorageService,private uiservice:U...
mikek1337/Traffic_Admin_ui
src/app/pages/forms/drivers/drivers.component.ts
TypeScript
MethodDeclaration
ngOnInit(): void { this.http.GetEnums("DRIVER'S_LICENCE LEVEL").subscribe(res=>{ this.driverlicenses = res; }) this.http.GetEnums("SUBCITY").subscribe(res=>{ this.subcitys = res; }) this.http.GetEnums("DRIVER-VEHICLE_RELATIONSHIP").subscribe(res=>{ this.driverrelations = res; ...
mikek1337/Traffic_Admin_ui
src/app/pages/forms/drivers/drivers.component.ts
TypeScript
MethodDeclaration
previouspage() { this.route.navigateByUrl("pages/forms/incidentForm"); }
mikek1337/Traffic_Admin_ui
src/app/pages/forms/drivers/drivers.component.ts
TypeScript
MethodDeclaration
nextpage() { this.data(); if (this.noofdriver>this.driversprocessed) { console.log(this.driver); this.write = true; this.http.adddriver(this.driver).subscribe(res=>{ if(res!=null) { this.driverid.push(res); console.log("sent") this.driver = new ...
mikek1337/Traffic_Admin_ui
src/app/pages/forms/drivers/drivers.component.ts
TypeScript
MethodDeclaration
data() { this.router.params.subscribe(res=>{ this.driver.incidentId = res.id; }) this.driver.partyId = this.storage.getLocalStorage("partyid") }
mikek1337/Traffic_Admin_ui
src/app/pages/forms/drivers/drivers.component.ts
TypeScript
MethodDeclaration
changebtname() { if(this.noofdriver == 1) { this.btnname = "ቀጣይ ግጽ"; } else { this.btnname = "አስቀምጥ"; } }
mikek1337/Traffic_Admin_ui
src/app/pages/forms/drivers/drivers.component.ts
TypeScript
ClassDeclaration
@Module({ providers: [TransactionService, TransactionResolver] }) export class TransactionModule {}
diogosalesdev/nsestjs-oracle
src/transaction/transaction.module.ts
TypeScript
ClassDeclaration
export declare class ReconciliationResponse { "pOIReconciliationID"?: string; "reconciliationType": ReconciliationType; "response": Response; "transactionTotals"?: TransactionTotals[]; static discriminator: string | undefined; static attributeTypeMap: { name: string; baseName: s...
LukeNorris/Adyen-dropin-components-demo
node_modules/@adyen/api-library/lib/src/typings/terminal/reconciliationResponse.d.ts
TypeScript
ClassDeclaration
@NgModule({ imports: [ RouterModule.forRoot(LAYOUT_ROUTES, { useHash: true , enableTracing: DEBUG_INFO_ENABLED }) ], exports: [ RouterModule ] }) export class SampleAppRoutingModule {}
NetAppJpTechTeam/DTLSamples
JHipster/sample/src/main/webapp/app/app-routing.module.ts
TypeScript
ArrowFunction
(resolve, reject) => { this._resolve = resolve; this._reject = reject; fn(); }
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
ArrowFunction
() => this.echo()
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
ArrowFunction
() => { this._logger.log("WebSocketManager.connect();"); if (!this.webSocket) { this._logger.log("WebSocketManager.connect()"); let _token: string; this._sessionManager.getValidToken() .then((token) => { ...
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
ArrowFunction
(token) => { _token = token; this._logger.log("WebSocketManager.connect() - got auth token", token); // reset this in case someone is opening / closing this.manuallyClosed = false; let url = `${th...
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
ArrowFunction
error => { this._opening.reject({ code: error.code, message: _token ? "Websocket Error" : "Failed to get Valid Token", }); }
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
ArrowFunction
() => { this.manuallyClosed = true; this.webSocket.close(); }
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
ArrowFunction
() => { this.attempts++; this._logger.log(`reconnecting (${this.attempts}) ...`); this.connect() .then(connected => { if (!this.enabled) { this._logger.log("socket disabled"); this.attempts = 0; ...
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
ArrowFunction
connected => { if (!this.enabled) { this._logger.log("socket disabled"); this.attempts = 0; this.reconnecting = false; } else if (connected) { this._logger.log("socket reconnected"); ...
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
ArrowFunction
(e) => { this._logger.log("socket recycle failed", e); this.reconnect(); }
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
ClassDeclaration
// https://github.com/vitalets/controlled-promise/blob/master/src/index.js class MyPromise<T> { private _promise: Promise<T> = null; private _resolve = null; private _reject = null; private _isPending = false; private _value = null; /** * * @returns {Boolean} */ get promise(...
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
MethodDeclaration
/** * * @param fn */ public call(fn: Function): Promise<T> { if (!this._isPending) { this._isPending = true; this._promise = new Promise((resolve, reject) => { this._resolve = resolve; this._reject = reject; fn(); ...
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
MethodDeclaration
/** * * @param value */ public resolve(value: T) { this._isPending = false; this._value = value; this._resolve(value); }
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
MethodDeclaration
/** * * @param value */ public reject(value: any) { this._isPending = false; this._reject(value); }
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
MethodDeclaration
/** * Function to determine te connection state of the websocket - rturns hether ther socket `did` connect rather than the current status as there is reconnection logic running. * @method WebSocketManager#isConnected * @returns {boolean} */ public isConnected(): boolean { return this.isOpen...
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
MethodDeclaration
/** * Function to enable or disable websocket connections. * @method WebSocketManager#setWebsocketEnabled * @param {boolean} enable * @returns {Promise} */ public setWebsocketEnabled(enable: boolean): Promise<boolean> { if (this.enabled !== enable) { this.enabled = enable; ...
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
MethodDeclaration
/** * Function to connect websocket * @method WebSocketManager#connect */ public connect(): Promise<boolean> { if (!this.enabled) { return Promise.resolve(false); } if (this.isClosing) { return Promise.reject(new Error(`Can't open WebSocket while closing....
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
MethodDeclaration
/** * Function to disconnect websocket * @method WebSocketManager#disconnect * @returns {Promise} */ public disconnect(): Promise<boolean> { if (this.isClosed) { return Promise.resolve(true); } this._logger.log("WebSocketManager.disconnect();"); this._...
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
MethodDeclaration
/** * Function to send some data from the client down the websocket * @method WebSocketManager#send * @param {any} data - the data to send * @returns {Promise} */ public send(data: any): void { if (this.isOpened) { this.webSocket.send(JSON.stringify(data)); } }
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
MethodDeclaration
/** * Function to determine te whether there is an ative socket or not (connected or disconnected) * @method WebSocketManager#hasSocket * @returns {boolean} */ public hasSocket(): boolean { return this.webSocket ? true : false; }
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript
MethodDeclaration
/** * Function to generate an interval for reconnecton purposes * @method WebSocketManager#generateInterval * @param {number} k * @returns {Promise} */ public generateInterval(k: number): number { let maxInterval = (Math.pow(2, k) - 1) * 1000; if (maxInterval > 30 * 1000) { ...
comapi/comapi-sdk-js
src/webSocketManager.ts
TypeScript