type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
TypeAliasDeclaration
export type ManagedURI = typeof ManagedURI
Liubyvyi/matechs-effect
packages/core/src/next/Managed/managed.ts
TypeScript
TypeAliasDeclaration
export type Sync<A> = Managed<never, unknown, never, A>
Liubyvyi/matechs-effect
packages/core/src/next/Managed/managed.ts
TypeScript
TypeAliasDeclaration
export type SyncE<E, A> = Managed<never, unknown, E, A>
Liubyvyi/matechs-effect
packages/core/src/next/Managed/managed.ts
TypeScript
TypeAliasDeclaration
export type SyncR<R, A> = Managed<never, R, never, A>
Liubyvyi/matechs-effect
packages/core/src/next/Managed/managed.ts
TypeScript
TypeAliasDeclaration
export type SyncRE<R, E, A> = Managed<never, R, E, A>
Liubyvyi/matechs-effect
packages/core/src/next/Managed/managed.ts
TypeScript
TypeAliasDeclaration
export type Async<A> = Managed<unknown, unknown, never, A>
Liubyvyi/matechs-effect
packages/core/src/next/Managed/managed.ts
TypeScript
TypeAliasDeclaration
export type AsyncR<R, A> = Managed<unknown, R, never, A>
Liubyvyi/matechs-effect
packages/core/src/next/Managed/managed.ts
TypeScript
TypeAliasDeclaration
export type AsyncE<E, A> = Managed<unknown, unknown, E, A>
Liubyvyi/matechs-effect
packages/core/src/next/Managed/managed.ts
TypeScript
TypeAliasDeclaration
export type AsyncRE<R, E, A> = Managed<unknown, R, E, A>
Liubyvyi/matechs-effect
packages/core/src/next/Managed/managed.ts
TypeScript
InterfaceDeclaration
export interface ITableInsert { values(values: any[]): ITableInsert values(...values: any[]): ITableInsert execute(): Promise<IOperationResult> }
danang-id/mysqlx
src/interfaces/ITableInsert.ts
TypeScript
ClassDeclaration
@Injectable({ providedIn: 'root' }) @StoreConfig({ name: 'auth', idKey: 'docId' }) export class AuthStore extends Store<AuthState> { constructor() { super({ loggedIn: false }); } }
bharring/mobile_comparisons
ionic/src/app/services/auth/auth.store.ts
TypeScript
InterfaceDeclaration
export interface AuthState { profile?: Profile; userId?: string; loggedIn: boolean; }
bharring/mobile_comparisons
ionic/src/app/services/auth/auth.store.ts
TypeScript
FunctionDeclaration
function to
gon1942/hamonize
hamonize-admin/translations/veyon_ko.ts
TypeScript
TypeAliasDeclaration
type specified! Please
gon1942/hamonize
hamonize-admin/translations/veyon_ko.ts
TypeScript
TypeAliasDeclaration
type of &lt;
gon1942/hamonize
hamonize-admin/translations/veyon_ko.ts
TypeScript
TypeAliasDeclaration
type specified. Valid
gon1942/hamonize
hamonize-admin/translations/veyon_ko.ts
TypeScript
TypeAliasDeclaration
type your message
gon1942/hamonize
hamonize-admin/translations/veyon_ko.ts
TypeScript
TypeAliasDeclaration
type of service &quot;
gon1942/hamonize
hamonize-admin/translations/veyon_ko.ts
TypeScript
ClassDeclaration
export abstract class CryptoSerializable extends Serializable implements ISerializable { public override serialize(verbose = true): string { return JSON.stringify(this.toJSON(verbose)); } public toBase64(verbose = true): string { return CoreBuffer.utf8_base64(this.serialize(verbose)); } }
nmshd/cns-crypto
src/CryptoSerializable.ts
TypeScript
MethodDeclaration
public override serialize(verbose = true): string { return JSON.stringify(this.toJSON(verbose)); }
nmshd/cns-crypto
src/CryptoSerializable.ts
TypeScript
MethodDeclaration
public toBase64(verbose = true): string { return CoreBuffer.utf8_base64(this.serialize(verbose)); }
nmshd/cns-crypto
src/CryptoSerializable.ts
TypeScript
ArrowFunction
x => ({ saving: x })
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
ArrowFunction
x => this.convertErrorsToArray(x)
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
ArrowFunction
([s, u]) => { this.user = u; this.createForm(); }
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
ArrowFunction
([s]) => s
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
ArrowFunction
(response: HttpErrorResponse) => { return of({ success: false, error: response.error }); }
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
ArrowFunction
() => this.saveSub.next(false)
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
ArrowFunction
(result: ITeamRegisterResult) => { if (result.success) { this.router.navigate(['./done'], { relativeTo: this.route, state: { 'payment': result.messages } }); } else { this.errorSub.next(result.error); } }
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
ArrowFunction
x => x.message
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
ArrowFunction
x => obj[x].errors.map(y => y.errorMessage)
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
ArrowFunction
y => y.errorMessage
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
ArrowFunction
(prev, curr) => [...prev, ...curr]
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
ClassDeclaration
@Component({ templateUrl: './team-register.component.html', styleUrls: ['./team-register.component.less'], changeDetection: ChangeDetectionStrategy.OnPush }) export class TeamRegisterComponent implements OnInit, OnDestroy { SeasonStateType = SeasonStateType; season$: Observable<IPublicSeasonInfo>; registerForm: FormGroup; user: IUser; private saveSub = new BehaviorSubject<boolean>(false); save$ = this.saveSub.asObservable().pipe(map(x => ({ saving: x }))); private errorSub = new Subject<any>(); error$: Observable<string[]>; @ViewChild('payment') payment: SquarePayComponent; private subscriptions: Subscription; get teams() { return this.registerForm.get('teams') as FormArray; } constructor(private userApi: UserApiService, private authService: AuthorizeService, private route: ActivatedRoute, private router: Router) { } ngOnInit(): void { this.subscriptions = new Subscription(); this.error$ = this.errorSub.pipe(map(x => this.convertErrorsToArray(x))); const obs = combineLatest([this.userApi.publicApi.getCurrentSeason(), this.authService.getUser()]).pipe( tap(([s, u]) => { this.user = u; this.createForm(); }), shareReplay(1) ); this.season$ = obs.pipe(map(([s]) => s)); } ngOnDestroy(): void { this.subscriptions.unsubscribe(); } private createForm() { this.registerForm = new FormGroup({ 'teams': new FormArray([this.createTeamRegisterGroup()]) }); } private createTeamRegisterGroup(): FormGroup { return new FormGroup({ 'name': new FormControl('', Validators.required), 'owner': new FormControl(this.user.name, Validators.required), }); } addTeam() { this.teams.push(this.createTeamRegisterGroup()); } removeTeam(i) { this.teams.removeAt(i); } async save(season: IPublicSeasonInfo) { if (this.registerForm.valid) { this.saveSub.next(true); const paymentResult = await this.payment.createPayment(); if (paymentResult.status === 'OK') { this.subscriptions.add(this.userApi.registerTeams(season.id, this.teams.value, paymentResult.token) .pipe( catchError((response: HttpErrorResponse) => { return of({ success: false, error: response.error }); }), finalize(() => this.saveSub.next(false))) .subscribe((result: ITeamRegisterResult) => { if (result.success) { this.router.navigate(['./done'], { relativeTo: this.route, state: { 'payment': result.messages } }); } else { this.errorSub.next(result.error); } })); } else { this.saveSub.next(false); } } } handlePaymentErrors(errors: any) { this.errorSub.next(errors); } private convertErrorsToArray(obj: any): string[] { if (!obj) { return undefined; } if (typeof(obj) === 'string') { return [<string>obj]; } if (Array.isArray(obj) && obj.length > 0) { if (obj[0] && obj[0].field && obj[0].message && obj[0].type) { // looks like a payment error return obj.map(x => x.message); } } else { const keys = Object.keys(obj); if (keys.length > 0) { if (obj[keys[0]].validationState === 1) { // looks like a modelstate error return keys.map(x => obj[x].errors.map(y => y.errorMessage)).reduce((prev, curr) => [...prev, ...curr], []); } } } console.error('unknown error format', obj); return undefined; } }
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
MethodDeclaration
ngOnInit(): void { this.subscriptions = new Subscription(); this.error$ = this.errorSub.pipe(map(x => this.convertErrorsToArray(x))); const obs = combineLatest([this.userApi.publicApi.getCurrentSeason(), this.authService.getUser()]).pipe( tap(([s, u]) => { this.user = u; this.createForm(); }), shareReplay(1) ); this.season$ = obs.pipe(map(([s]) => s)); }
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
MethodDeclaration
ngOnDestroy(): void { this.subscriptions.unsubscribe(); }
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
MethodDeclaration
private createForm() { this.registerForm = new FormGroup({ 'teams': new FormArray([this.createTeamRegisterGroup()]) }); }
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
MethodDeclaration
private createTeamRegisterGroup(): FormGroup { return new FormGroup({ 'name': new FormControl('', Validators.required), 'owner': new FormControl(this.user.name, Validators.required), }); }
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
MethodDeclaration
addTeam() { this.teams.push(this.createTeamRegisterGroup()); }
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
MethodDeclaration
removeTeam(i) { this.teams.removeAt(i); }
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
MethodDeclaration
async save(season: IPublicSeasonInfo) { if (this.registerForm.valid) { this.saveSub.next(true); const paymentResult = await this.payment.createPayment(); if (paymentResult.status === 'OK') { this.subscriptions.add(this.userApi.registerTeams(season.id, this.teams.value, paymentResult.token) .pipe( catchError((response: HttpErrorResponse) => { return of({ success: false, error: response.error }); }), finalize(() => this.saveSub.next(false))) .subscribe((result: ITeamRegisterResult) => { if (result.success) { this.router.navigate(['./done'], { relativeTo: this.route, state: { 'payment': result.messages } }); } else { this.errorSub.next(result.error); } })); } else { this.saveSub.next(false); } } }
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
MethodDeclaration
handlePaymentErrors(errors: any) { this.errorSub.next(errors); }
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
MethodDeclaration
private convertErrorsToArray(obj: any): string[] { if (!obj) { return undefined; } if (typeof(obj) === 'string') { return [<string>obj]; } if (Array.isArray(obj) && obj.length > 0) { if (obj[0] && obj[0].field && obj[0].message && obj[0].type) { // looks like a payment error return obj.map(x => x.message); } } else { const keys = Object.keys(obj); if (keys.length > 0) { if (obj[keys[0]].validationState === 1) { // looks like a modelstate error return keys.map(x => obj[x].errors.map(y => y.errorMessage)).reduce((prev, curr) => [...prev, ...curr], []); } } } console.error('unknown error format', obj); return undefined; }
subshock/dreamteam
DreamTeam/ClientApp/src/app/modules/user/teams/register/team-register.component.ts
TypeScript
ArrowFunction
err => { type RemoteConnectionFailureClassification = { web: { classification: 'SystemMetaData', purpose: 'PerformanceAndHealth' }; remoteName: { classification: 'SystemMetaData', purpose: 'PerformanceAndHealth' }; message: { classification: 'SystemMetaData', purpose: 'PerformanceAndHealth' }; }; type RemoteConnectionFailureEvent = { web: boolean; remoteName: string | undefined; message: string; }; telemetryService.publicLog2<RemoteConnectionFailureEvent, RemoteConnectionFailureClassification>('remoteConnectionFailure', { web: false, remoteName: getRemoteName(environmentService.remoteAuthority), message: err ? err.message : '', }); if (!RemoteAuthorityResolverError.isHandled(err)) { const choices: IPromptChoice[] = [ { label: nls.localize('devTools', "Open Developer Tools"), run: () => nativeHostService.openDevTools() } ]; const troubleshootingURL = this._getTroubleshootingURL(); if (troubleshootingURL) { choices.push({ label: nls.localize('directUrl', "Open in browser"), run: () => openerService.open(troubleshootingURL, { openExternal: true }) }); } notificationService.prompt( Severity.Error, nls.localize('connectionError', "Failed to connect to the remote extension host server (Error: {0})", err ? err.message : ''), choices ); } }
1478zhcy/vscode
src/vs/workbench/services/remote/electron-sandbox/remoteAgentServiceImpl.ts
TypeScript
ArrowFunction
() => nativeHostService.openDevTools()
1478zhcy/vscode
src/vs/workbench/services/remote/electron-sandbox/remoteAgentServiceImpl.ts
TypeScript
ArrowFunction
() => openerService.open(troubleshootingURL, { openExternal: true })
1478zhcy/vscode
src/vs/workbench/services/remote/electron-sandbox/remoteAgentServiceImpl.ts
TypeScript
ClassDeclaration
export class RemoteAgentService extends AbstractRemoteAgentService implements IRemoteAgentService { constructor( @IWorkbenchEnvironmentService environmentService: IWorkbenchEnvironmentService, @IProductService productService: IProductService, @IRemoteAuthorityResolverService remoteAuthorityResolverService: IRemoteAuthorityResolverService, @ISignService signService: ISignService, @ILogService logService: ILogService, ) { super(new BrowserSocketFactory(null), environmentService, productService, remoteAuthorityResolverService, signService, logService); } }
1478zhcy/vscode
src/vs/workbench/services/remote/electron-sandbox/remoteAgentServiceImpl.ts
TypeScript
ClassDeclaration
class RemoteConnectionFailureNotificationContribution implements IWorkbenchContribution { constructor( @IRemoteAgentService private readonly _remoteAgentService: IRemoteAgentService, @INotificationService notificationService: INotificationService, @IWorkbenchEnvironmentService environmentService: IWorkbenchEnvironmentService, @ITelemetryService telemetryService: ITelemetryService, @INativeHostService nativeHostService: INativeHostService, @IRemoteAuthorityResolverService private readonly _remoteAuthorityResolverService: IRemoteAuthorityResolverService, @IOpenerService openerService: IOpenerService, ) { // Let's cover the case where connecting to fetch the remote extension info fails this._remoteAgentService.getRawEnvironment() .then(undefined, err => { type RemoteConnectionFailureClassification = { web: { classification: 'SystemMetaData', purpose: 'PerformanceAndHealth' }; remoteName: { classification: 'SystemMetaData', purpose: 'PerformanceAndHealth' }; message: { classification: 'SystemMetaData', purpose: 'PerformanceAndHealth' }; }; type RemoteConnectionFailureEvent = { web: boolean; remoteName: string | undefined; message: string; }; telemetryService.publicLog2<RemoteConnectionFailureEvent, RemoteConnectionFailureClassification>('remoteConnectionFailure', { web: false, remoteName: getRemoteName(environmentService.remoteAuthority), message: err ? err.message : '', }); if (!RemoteAuthorityResolverError.isHandled(err)) { const choices: IPromptChoice[] = [ { label: nls.localize('devTools', "Open Developer Tools"), run: () => nativeHostService.openDevTools() } ]; const troubleshootingURL = this._getTroubleshootingURL(); if (troubleshootingURL) { choices.push({ label: nls.localize('directUrl', "Open in browser"), run: () => openerService.open(troubleshootingURL, { openExternal: true }) }); } notificationService.prompt( Severity.Error, nls.localize('connectionError', "Failed to connect to the remote extension host server (Error: {0})", err ? err.message : ''), choices ); } }); } private _getTroubleshootingURL(): URI | null { const remoteAgentConnection = this._remoteAgentService.getConnection(); if (!remoteAgentConnection) { return null; } const connectionData = this._remoteAuthorityResolverService.getConnectionData(remoteAgentConnection.remoteAuthority); if (!connectionData) { return null; } return URI.from({ scheme: 'http', authority: `${connectionData.host}:${connectionData.port}`, path: `/version` }); } }
1478zhcy/vscode
src/vs/workbench/services/remote/electron-sandbox/remoteAgentServiceImpl.ts
TypeScript
TypeAliasDeclaration
type RemoteConnectionFailureClassification = { web: { classification: 'SystemMetaData', purpose: 'PerformanceAndHealth' }; remoteName: { classification: 'SystemMetaData', purpose: 'PerformanceAndHealth' }; message: { classification: 'SystemMetaData', purpose: 'PerformanceAndHealth' }; };
1478zhcy/vscode
src/vs/workbench/services/remote/electron-sandbox/remoteAgentServiceImpl.ts
TypeScript
TypeAliasDeclaration
type RemoteConnectionFailureEvent = { web: boolean; remoteName: string | undefined; message: string; };
1478zhcy/vscode
src/vs/workbench/services/remote/electron-sandbox/remoteAgentServiceImpl.ts
TypeScript
MethodDeclaration
private _getTroubleshootingURL(): URI | null { const remoteAgentConnection = this._remoteAgentService.getConnection(); if (!remoteAgentConnection) { return null; } const connectionData = this._remoteAuthorityResolverService.getConnectionData(remoteAgentConnection.remoteAuthority); if (!connectionData) { return null; } return URI.from({ scheme: 'http', authority: `${connectionData.host}:${connectionData.port}`, path: `/version` }); }
1478zhcy/vscode
src/vs/workbench/services/remote/electron-sandbox/remoteAgentServiceImpl.ts
TypeScript
FunctionDeclaration
export default function responsiveFontSizes( theme: Theme, options?: ResponsiveFontSizesOptions, ): Theme;
3v1lW1th1n/material-ui
packages/material-ui/src/styles/responsiveFontSizes.d.ts
TypeScript
InterfaceDeclaration
export interface ResponsiveFontSizesOptions { breakpoints?: Breakpoint[]; disableAlign?: boolean; factor?: number; variants?: ThemeStyle[]; }
3v1lW1th1n/material-ui
packages/material-ui/src/styles/responsiveFontSizes.d.ts
TypeScript
ArrowFunction
async (socket) => { const pc = new RTCPeerConnection({}); pc.iceConnectionStateChange.subscribe((v) => console.log("pc.iceConnectionStateChange", v) ); pc.addTransceiver("video", { direction: "recvonly" }).onTrack.subscribe( (track) => track.onReceiveRtp.subscribe((packet) => { udp.send(packet.serialize(), 4002, "127.0.0.1"); }) ); await pc.setLocalDescription(await pc.createOffer()); const sdp = JSON.stringify(pc.localDescription); socket.send(sdp); socket.on("message", (data: any) => { pc.setRemoteDescription(JSON.parse(data)); }); }
koush/werift-webrtc
examples/mediachannel/recvonly/offer.ts
TypeScript
ArrowFunction
(v) => console.log("pc.iceConnectionStateChange", v)
koush/werift-webrtc
examples/mediachannel/recvonly/offer.ts
TypeScript
ArrowFunction
(track) => track.onReceiveRtp.subscribe((packet) => { udp.send(packet.serialize(), 4002, "127.0.0.1"); })
koush/werift-webrtc
examples/mediachannel/recvonly/offer.ts
TypeScript
ArrowFunction
(packet) => { udp.send(packet.serialize(), 4002, "127.0.0.1"); }
koush/werift-webrtc
examples/mediachannel/recvonly/offer.ts
TypeScript
ArrowFunction
(data: any) => { pc.setRemoteDescription(JSON.parse(data)); }
koush/werift-webrtc
examples/mediachannel/recvonly/offer.ts
TypeScript
ClassDeclaration
class LinkHashes { private linksInfo: Record<string, number> = {}; ensureHashGenerated(link: string, data: ArrayBuffer) { if (!this.linksInfo[link]) { this.linksInfo[link] = XXHash32.hash(0, data).toNumber(); } } isSame(link: string, data: ArrayBuffer) { const fileHash = XXHash32.hash(0, data).toNumber(); return this.linksInfo[link] == fileHash; } }
aleksey-rezvov/obsidian-local-images
src/linksHash.ts
TypeScript
MethodDeclaration
ensureHashGenerated(link: string, data: ArrayBuffer) { if (!this.linksInfo[link]) { this.linksInfo[link] = XXHash32.hash(0, data).toNumber(); } }
aleksey-rezvov/obsidian-local-images
src/linksHash.ts
TypeScript
MethodDeclaration
isSame(link: string, data: ArrayBuffer) { const fileHash = XXHash32.hash(0, data).toNumber(); return this.linksInfo[link] == fileHash; }
aleksey-rezvov/obsidian-local-images
src/linksHash.ts
TypeScript
FunctionDeclaration
export default function renderExpandableColumn( cx: WithStylesProps['cx'], styles: WithStylesProps['styles'], expandedRows: Set<number>, expandRow: (newExpandedRowIndex: number) => (event: any) => void, ) { const cellRenderer = (row: TableRow) => { const { children, originalIndex } = row.rowData.metadata; if (children && children.length > 0) { return ( <div className={cx(styles.expand_caret)} role="button" tabIndex={0} onClick={expandRow(originalIndex)} onKeyPress={expandRow(originalIndex)} > <Spacing left={1.5}> <ExpandableIcon expanded={expandedRows.has(originalIndex)} size="1.6em" /> </Spacing> </div> ); }
mhsander/lunar
packages/core/src/components/DataTable/columns/ExpandableColumn.tsx
TypeScript
ArrowFunction
(row: TableRow) => { const { children, originalIndex } = row.rowData.metadata; if (children && children.length > 0) { return ( <div className={cx(styles.expand_caret)} role="button" tabIndex={0} onClick={expandRow(originalIndex)} onKeyPress={expandRow(originalIndex)} > <Spacing left={1.5}> <ExpandableIcon expanded={expandedRows.has(originalIndex)} size="1.6em" /> </Spacing> </div>
mhsander/lunar
packages/core/src/components/DataTable/columns/ExpandableColumn.tsx
TypeScript
MethodDeclaration
expandRow(originalIndex)
mhsander/lunar
packages/core/src/components/DataTable/columns/ExpandableColumn.tsx
TypeScript
ClassDeclaration
@Injectable({ providedIn: 'root' }) export class DailyBacktestService { constructor(private http: HttpClient) { } getSignalScores(signals: any): Observable<any> { const data = { signals }; return this.http.post(`${BASE_URL}api/backtest/score-signals`, data, {}); } getPop(bullishIndicators: string[], bearishIndicators: string[], signals: any): Observable<any> { const data = { bullishActiveIndicators: bullishIndicators, bearishActiveIndicators: bearishIndicators, signals }; return this.http.post(`${BASE_URL}api/backtest/pop`, data, {}); } }
Artimatic/Merchant-of-Nottingham
src/app/shared/daily-backtest.service.ts
TypeScript
MethodDeclaration
getSignalScores(signals: any): Observable<any> { const data = { signals }; return this.http.post(`${BASE_URL}api/backtest/score-signals`, data, {}); }
Artimatic/Merchant-of-Nottingham
src/app/shared/daily-backtest.service.ts
TypeScript
MethodDeclaration
getPop(bullishIndicators: string[], bearishIndicators: string[], signals: any): Observable<any> { const data = { bullishActiveIndicators: bullishIndicators, bearishActiveIndicators: bearishIndicators, signals }; return this.http.post(`${BASE_URL}api/backtest/pop`, data, {}); }
Artimatic/Merchant-of-Nottingham
src/app/shared/daily-backtest.service.ts
TypeScript
ArrowFunction
(name: string, type: string, urn: string): pulumi.ProviderResource => { if (type !== "pulumi:providers:oci") { throw new Error(`unknown provider type ${type}`); } return new Provider(name, <any>undefined, { urn }); }
EladGabay/pulumi-oci
sdk/nodejs/index.ts
TypeScript
FunctionDeclaration
/** * Acccept the area Spirit Healer's resurrection in battlegrounds * @see https://wow.gamepedia.com/API_AcceptAreaSpiritHeal */ declare function AcceptAreaSpiritHeal(): void;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Confirms entry into a Battleground you are queued for that is ready * @param index The battlefield in queue to enter * @param accept Whether or not to accept entry to the battlefield * @protected HARDWARE_EVENT * @see https://wow.gamepedia.com/API_AcceptBattlefieldPort */ declare function AcceptBattlefieldPort(index: number, accept: boolean): void;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Cancels the area Spirit Healer's resurrection in battlegrounds * @see https://wow.gamepedia.com/API_CancelAreaSpiritHeal */ declare function CancelAreaSpiritHeal(): void;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Returns, whether the player can join a battlefield as group or not * @return returns true, if the player can join the battlefield as group * @see https://wow.gamepedia.com/API_CanJoinBattlefieldAsGroup */ declare function CanJoinBattlefieldAsGroup(): boolean;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Gets the time left until the next resurrection cast. * @return Seconds until the Spirit Guide casts its next Area Resurrection. Returns 0 if player is not dead * @see https://wow.gamepedia.com/API_GetAreaSpiritHealerTime */ declare function GetAreaSpiritHealerTime(): number;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Get estimated wait time for a Battlefield's availability * @returns Milliseconds until Battlefield opening is available (estimated) * @see https://wow.gamepedia.com/API_GetBattlefieldEstimatedWaitTime */ declare function GetBattlefieldEstimatedWaitTime(): number;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Used to position the flag icon on the world map and the battlefield minimap * @param index Index to get the flag position from * @see https://wow.gamepedia.com/API_GetBattlefieldFlagPosition * @tupleReturn */ declare function GetBattlefieldFlagPosition(index: number): [number, number, string];
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Get shutdown timer for the battlefield instance * @returns the number of milliseconds before the Battlefield will close after a battle is finished. This is 0 before the battle is finished * @see https://wow.gamepedia.com/API_GetBattlefieldInstanceExpiration */ declare function GetBattlefieldInstanceExpiration(): number;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Returns the time passed since the battleground started * @returns miliseconds passed since the battle started * @see https://wow.gamepedia.com/API_GetBattlefieldInstanceRunTime */ declare function GetBattlefieldInstanceRunTime(): number;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Returns the remaining seconds of a battlefield port * @param index Index of queue to get the expiration from * @returns Remaining time of battlefield port in seconds * @see https://wow.gamepedia.com/API_GetBattlefieldPortExpiration */ declare function GetBattlefieldPortExpiration(index: number): number;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Returns information about a player's score in battlegrounds * @param playerIndex The characters index in battlegrounds, going from 1 to GetNumBattlefieldScores(). * @see https://wow.gamepedia.com/API_GetBattlefieldScore * @tupleReturn */ declare function GetBattlefieldScore( playerIndex: number, ): [string, number, number, number, number, number, string, string, string, number, number, string];
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Get data from the custom battlefield scoreboard columns * @param playerIndex Player you want to grab the data for * @param columnIndex Column you want to grab the data from * @description Used to retrieve data from battleground specific scoreboard columns like flag captures in Warsong Gulch. * If you want to make sure you have the most recent data you will have to call RequestBattlefieldScoreData and then wait for UPDATE_BATTLEFIELD_SCORE * @see https://wow.gamepedia.com/API_GetBattlefieldStatData */ declare function GetBattlefieldStatData(playerIndex: number, columnIndex: number): WoWAPI.Unknown;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Get list of battleground specific columns on the scoreboard * @param columnIndex Column to get data for * @see https://wow.gamepedia.com/API_GetBattlefieldStatInfo * @tupleReturn */ declare function GetBattlefieldStatInfo(columnIndex: number): [string, string, string];
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Get the status of the arena, battleground, or wargame that the player is either queued for or inside * @param battlefieldIndex Index of the battlefield you wish to view, in the range of 1 to GetMaxBattlefieldID() * @see https://wow.gamepedia.com/API_GetBattlefieldStatus * @tupleReturn */ // tslint:disable-next-line max-line-length declare function GetBattlefieldStatus( battlefieldIndex: number, ): [ WoWAPI.BattlefieldStatusType, string, WoWAPI.BattlefieldTeamSize, number, WoWAPI.Unknown, WoWAPI.BattlefieldType, WoWAPI.Unknown, WoWAPI.UnitRoleType, ];
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Get time this player's been in the queue in milliseconds * @param battlegroundQueuePosition The queue position * @see https://wow.gamepedia.com/API_GetBattlefieldTimeWaited */ declare function GetBattlefieldTimeWaited(battlegroundQueuePosition: number): number;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Get the winner of the battlefield * @returns Faction/team that has won the battlefield. Results are: nil if nobody has won, 0 for Horde, 1 for Alliance and 255 * for a draw in a battleground, 0 for Green Team and 1 for Yellow in an arena * @see https://wow.gamepedia.com/API_GetBattlefieldWinner */ declare function GetBattlefieldWinner(): WoWAPI.BattlefieldWinType;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Returns information about a battleground type * @param battlegroundTypeIndex battleground type index, 1 to GetNumBattlegroundTypes(). * @see https://wow.gamepedia.com/API_GetBattlegroundInfo * @tupleReturn */ declare function GetBattlegroundInfo( battlegroundTypeIndex: number, ): [string, WoWAPI.Flag, WoWAPI.Flag, WoWAPI.Flag, number, string];
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Returns the max number of battlefields you can queue for * @returns Max number of Battlefields * @see https://wow.gamepedia.com/API_GetMaxBattlefieldID * @since 4.3.0 */ declare function GetMaxBattlefieldID(): number;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Appears to return the number of scores in the battleground/field scoreboard * @see https://wow.gamepedia.com/API_GetNumBattlefieldScores */ declare function GetNumBattlefieldScores(): WoWAPI.Unknown;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Appears to return the number of columns in the battleground/field scoreboard, other than the common ones (Killing Blows, Kills, Deaths, Bonus Honour): * @returns Number of columns available for the battleground (2 for Warsong Gulch and Arathi Basin, 7 for Alterac Valley) * @see https://wow.gamepedia.com/API_GetNumBattlefieldStats */ declare function GetNumBattlefieldStats(): number;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Returns the number of world state UI elements. These are displayed in the WorldStateFrame at the top center of the screen * @see https://wow.gamepedia.com/API_GetNumWorldStateUI */ declare function GetNumWorldStateUI(): number;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Get score and flag status within a battlefield * @param worldUiStateIndex between 1 and GetNumWorldStateUI(). * @see https://wow.gamepedia.com/API_GetWorldStateUIInfo * @tupleReturn */ // tslint:disable-next-line max-line-length declare function GetWorldStateUIInfo( worldUiStateIndex: number, ): [ number, WoWAPI.BattlefieldUiStateType, boolean, string, string, string, string, string, string, number, number, number, ];
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Queues the player, or the player's group, for a battlefield instance * @param battlefieldIndex Which battlefield instance to queue for (0 for first available), or which arena bracket to queue for * @param asGroup If true-equivalent, the player's group is queued for the battlefield, otherwise, only the player is queued * @param isRated If true-equivalent, and queueing for an arena bracket, the group is queued for a rated match as opposed to a skirmish * @deprecated * @protected Protected functions can only be called from a secure execution path. */ declare function JoinBattlefield(battlefieldIndex: number, asGroup?: boolean, isRated?: boolean): void;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Leaves the current battlefield * @description Leaves the current battlefield the player is inside, pre-2.0.1 this would only leave the battlefield if it had been won or * lost this was changed in 2.0.1 to exit you from the battlefield regardless if it was finished or not and will give you deserter. * @see https://wow.gamepedia.com/API_LeaveBattlefield */ declare function LeaveBattlefield(): void;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Requests the lastest battlefield score data from the server * @event UPDATE_BATTLEFIELD_SCORE * @see https://wow.gamepedia.com/API_RequestBattlefieldScoreData */ declare function RequestBattlefieldScoreData(): void;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Requests information about the available instances of a particular battleground * @param instanceIndex Index of the battleground type to request instance information for; valid indices start from 1 and go up to GetNumBattlegroundTypes(). * @event PVPQUEUE_ANYWHERE_SHOW * @description Calling JoinBattlefield after calling this function, but before PVPQUEUE_ANYWHERE_SHOW, will fail silently; you must wait for * the instance list to become available before you can queue for an instance. * @see https://wow.gamepedia.com/API_RequestBattlegroundInstanceInfo */ declare function RequestBattlegroundInstanceInfo(instanceIndex: number): void;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
FunctionDeclaration
/** * Set the faction to show on the battlefield scoreboard * @param faction nil = All, 0 = Horde, 1 = Alliance * @see https://wow.gamepedia.com/API_SetBattlefieldScoreFaction */ declare function SetBattlefieldScoreFaction(faction?: WoWAPI.BattlefieldFaction): void;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
TypeAliasDeclaration
type BattlefieldStatusType = 'queued' | 'confirm' | 'active' | 'none' | 'error';
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
TypeAliasDeclaration
type BattlefieldTeamSize = 0 | 2 | 3 | 5;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
TypeAliasDeclaration
type BattlefieldType = 'ARENA' | 'BATTLEGROUND' | 'WARGAME';
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
TypeAliasDeclaration
type BattlefieldWinType = null | 0 | 1 | 255;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
TypeAliasDeclaration
type BattlefieldUiStateType = 0 | 1 | 2;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript
TypeAliasDeclaration
type BattlefieldFaction = null | undefined | void | 0 | 1;
martinjlowm/wow-declarations
declarations/battlefield.d.ts
TypeScript