type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
MethodDeclaration
public override render() { const horizontalItems = new ItemList([ CoreTools.fitViewCommand, CoreTools.windowAreaCommand, CoreTools.zoomViewCommand, CoreTools.panViewCommand, CoreTools.rotateViewCommand, ]); const verticalItems = new ItemList([ CoreTools.toggle...
BeChaRem/imodeljs
test-apps/ui-test-app/src/frontend/appui/frontstages/Frontstage2.tsx
TypeScript
ArrowFunction
<T, ListFilter extends Record<string, any> = Record<string, any>>({ apiKey, apiMethod, linkedId, itemsPerPage = 30, filters = {} as ListFilter, enabled = true, }: Params<T, ListFilter>): AllPagesReturn<T> => { const [currentPage, setCurrentPage] = useState(0); const [loading, setLoading...
mbertoneri/pellet-logger-admin
src/hooks/useAllPagesQuery.ts
TypeScript
ArrowFunction
() => { let unmounted = false; client.getMutationCache().subscribe((mutation) => { if ( mutation?.options.mutationKey === apiKey || -1 < (mutation?.options.mutationKey || []).indexOf(apiKey) || (linkedId && -1 < (mutation?.options.mutationKey ...
mbertoneri/pellet-logger-admin
src/hooks/useAllPagesQuery.ts
TypeScript
ArrowFunction
(mutation) => { if ( mutation?.options.mutationKey === apiKey || -1 < (mutation?.options.mutationKey || []).indexOf(apiKey) || (linkedId && -1 < (mutation?.options.mutationKey || []).indexOf(linkedId)) ) { if (!unmounted) { ...
mbertoneri/pellet-logger-admin
src/hooks/useAllPagesQuery.ts
TypeScript
ArrowFunction
(): any => (unmounted = true)
mbertoneri/pellet-logger-admin
src/hooks/useAllPagesQuery.ts
TypeScript
ArrowFunction
() => apiMethod(currentPage, itemsPerPage, stateFilters)
mbertoneri/pellet-logger-admin
src/hooks/useAllPagesQuery.ts
TypeScript
ArrowFunction
() => { let unmounted = false; if (data) { setAllData([...(1 === currentPage ? [] : allData), ...data]); if (currentPage < lastPage) { if (!unmounted) { setCurrentPage(currentPage + 1); } } else { if...
mbertoneri/pellet-logger-admin
src/hooks/useAllPagesQuery.ts
TypeScript
ArrowFunction
() => { let unmounted = false; if (enabled && 0 === currentPage && !unmounted) { setCurrentPage(currentPage + 1); } return (): any => (unmounted = true); }
mbertoneri/pellet-logger-admin
src/hooks/useAllPagesQuery.ts
TypeScript
ArrowFunction
() => { let unmounted = false; if (JSON.stringify(stateFilters) !== JSON.stringify(filters)) { if (!unmounted) { setFilters(filters); } } return (): any => (unmounted = true); }
mbertoneri/pellet-logger-admin
src/hooks/useAllPagesQuery.ts
TypeScript
TypeAliasDeclaration
type AllPagesReturn<T> = { isLoading: boolean; data: Array<T>; };
mbertoneri/pellet-logger-admin
src/hooks/useAllPagesQuery.ts
TypeScript
TypeAliasDeclaration
type Params<T, ListFilter extends Record<string, any> = Record<string, any>> = { apiKey: string; apiMethod: ResourceApi<T>['fetchPage']; linkedId?: string; itemsPerPage?: number; filters?: ListFilter; enabled?: boolean; };
mbertoneri/pellet-logger-admin
src/hooks/useAllPagesQuery.ts
TypeScript
InterfaceDeclaration
export interface IPositionQtyNoPositions { PosType?: string// 703 LongQty?: number// 704 ShortQty?: number// 705 PosQtyStatus?: number// 706 NestedParties: INestedParties }
pvtienhoa/jspurefix
src/types/FIXFXCM/quickfix/set/position_qty_no_positions.ts
TypeScript
ClassDeclaration
export class Asserts { /** * Throw an error if the condition is false. */ public static Assert( condition: boolean, message?: string ): asserts condition { if( !condition ) { throw new Error( message ); } } /** * Throw an error if mightBeUndefined is undefined. */ public stati...
olssonfredrik/rocketfuel-lib-core
util/Asserts.ts
TypeScript
MethodDeclaration
/** * Throw an error if the condition is false. */ public static Assert( condition: boolean, message?: string ): asserts condition { if( !condition ) { throw new Error( message ); } }
olssonfredrik/rocketfuel-lib-core
util/Asserts.ts
TypeScript
MethodDeclaration
/** * Throw an error if mightBeUndefined is undefined. */ public static AssertDefined< T >( mightBeUndefined: T | undefined, message?: string ): asserts mightBeUndefined is Exclude< T, null > { Asserts.Assert( mightBeUndefined !== undefined, message ); }
olssonfredrik/rocketfuel-lib-core
util/Asserts.ts
TypeScript
MethodDeclaration
/** * Throw an error if mightBeUndefinedOrNull is undefined or null. */ public static AssertNotNull< T >( mightBeUndefinedOrNull: T | undefined, message?: string ): asserts mightBeUndefinedOrNull is NonNullable< T > { Asserts.Assert( mightBeUndefinedOrNull !== undefined && mightBeUndefinedOrNull !== null, me...
olssonfredrik/rocketfuel-lib-core
util/Asserts.ts
TypeScript
MethodDeclaration
/** * Throw an error if the function is called. */ public static Fail(): never { throw new Error( "This function should not be called" ); }
olssonfredrik/rocketfuel-lib-core
util/Asserts.ts
TypeScript
ArrowFunction
() => { // Email sent. }
GibsonHub/anycms
src/app/shared/services/user.service.ts
TypeScript
ArrowFunction
(error) => { // An error happened. }
GibsonHub/anycms
src/app/shared/services/user.service.ts
TypeScript
ClassDeclaration
@Injectable() export class UserService { private tabelPrefix: string = tenant.tenants['default'].databasePrefix; constructor(private alertService: AlertService) {} public saveUserInfo(uid: string, name: string, email: string): Promise<string> { return firebase.database().ref().child(this.tabelPrefix + 'us...
GibsonHub/anycms
src/app/shared/services/user.service.ts
TypeScript
MethodDeclaration
public saveUserInfo(uid: string, name: string, email: string): Promise<string> { return firebase.database().ref().child(this.tabelPrefix + 'users/' + uid).set({ name: name, email: email }); }
GibsonHub/anycms
src/app/shared/services/user.service.ts
TypeScript
MethodDeclaration
public updateUserInfo(uid: string, displayName: string, bio: string): Promise<string> { return firebase.database().ref().child(this.tabelPrefix + 'users/' + uid).update({ displayName: displayName, bio: bio }); }
GibsonHub/anycms
src/app/shared/services/user.service.ts
TypeScript
MethodDeclaration
public keepInTouch(email: string) { this.alertService.showToaster('Your email is saved'); return firebase.database().ref().child(this.tabelPrefix + 'touch/').push({ email: email }); }
GibsonHub/anycms
src/app/shared/services/user.service.ts
TypeScript
MethodDeclaration
public contactFormSend( company: string, firstname: string, lastname: string, address: string, city: string, postal: string, message: string ) { this.alertService.showToaster('This contact form is saved'); return firebase.database().ref().child(this.tabelPrefix + 'contactform/').p...
GibsonHub/anycms
src/app/shared/services/user.service.ts
TypeScript
MethodDeclaration
public getUserProfileInformation(): void { const user = firebase.auth().currentUser; let name, email, photoUrl, uid, emailVerified; if (user != null) { name = user.displayName; email = user.email; photoUrl = user.photoURL; emailVerified = user.emailVerified; uid = user.uid; ...
GibsonHub/anycms
src/app/shared/services/user.service.ts
TypeScript
MethodDeclaration
public verificationUserEmail(): Promise<void> { return firebase.auth().currentUser.sendEmailVerification().then(() => { // Email sent. }, (error) => { // An error happened. }); }
GibsonHub/anycms
src/app/shared/services/user.service.ts
TypeScript
MethodDeclaration
public sendUserPasswordResetEmail(): Promise<void> { return firebase.auth().sendPasswordResetEmail(firebase.auth().currentUser.email).then(() => { // Email sent. }, (error) => { // An error happened. }); }
GibsonHub/anycms
src/app/shared/services/user.service.ts
TypeScript
ClassDeclaration
@NgModule({ imports: [ CommonModule, BrowserAnimationsModule, FormsModule, RouterModule, ComponentsModule, NgxSiemaModule.forRoot(), ], declarations: [ HomeComponent, LandingComponent ], exports:[ HomeComponent ], providers: [ ] }) export class Ho...
jumpsnack/Qi_webpage
src/app/home/home.module.ts
TypeScript
InterfaceDeclaration
interface Foo { varWithoutTypeAnnotation; varAsAny: any; varAsNumber: number; varAsBoolean: boolean; varAsString: string; }
Kotlin/ts2kt
testData/interface/variables/variables.d.ts
TypeScript
InterfaceDeclaration
interface Bar { name: string; }
Kotlin/ts2kt
testData/interface/variables/variables.d.ts
TypeScript
MethodDeclaration
/** * Tenant access metadata * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters * @returns Promise<Models.TenantAccessGetEntityTagResponse> */ getEntityTag(resourceGroupName: string, service...
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
/** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param callback The callback */ getEntityTag(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback<void>): void;
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
/** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param options The optional parameters * @param callback The callback */ getEntityTag(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback:...
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
getEntityTag(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<Models.TenantAccessGetEntityTagResponse> { return this.client.sendOperationRequest( { resourceGroupName, serviceNa...
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
/** * Get tenant access information details * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters * @returns Promise<Models.TenantAccessGetResponse> */ get(resourceGroupName: string, serviceNam...
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
/** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param callback The callback */ get(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback<Models.AccessInformationContract>): void;
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
/** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param options The optional parameters * @param callback The callback */ get(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.S...
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
get(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AccessInformationContract>, callback?: msRest.ServiceCallback<Models.AccessInformationContract>): Promise<Models.TenantAccessGetResponse> { return this.client.sendOperationRequest( { ...
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
/** * Update tenant access information details. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to retrieve the Tenant Access Information. * @param ifMatch ETag of the Entity. ETag should match...
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
/** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to retrieve the Tenant Access Information. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * ...
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
/** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to retrieve the Tenant Access Information. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * ...
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
update(resourceGroupName: string, serviceName: string, parameters: Models.AccessInformationUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> { return this.client.sendOperationRequest( {...
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
/** * Regenerate primary access key * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters * @returns Promise<msRest.RestResponse> */ regeneratePrimaryKey(resourceGroupName: string, serviceName:...
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
/** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param callback The callback */ regeneratePrimaryKey(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback<void>): void;
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
/** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param options The optional parameters * @param callback The callback */ regeneratePrimaryKey(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, c...
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
regeneratePrimaryKey(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> { return this.client.sendOperationRequest( { resourceGroupName, serviceName, ...
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
/** * Regenerate secondary access key * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters * @returns Promise<msRest.RestResponse> */ regenerateSecondaryKey(resourceGroupName: string, serviceN...
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
/** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param callback The callback */ regenerateSecondaryKey(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback<void>): void;
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
/** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param options The optional parameters * @param callback The callback */ regenerateSecondaryKey(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase,...
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
MethodDeclaration
regenerateSecondaryKey(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> { return this.client.sendOperationRequest( { resourceGroupName, serviceName, ...
00Kai0/azure-sdk-for-js
sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts
TypeScript
ClassDeclaration
/** * \@author Sandeep.Mantha * \@whatItDoes * * \@howToUse * */ export class LoggerService { public info(message:string) { this.write(message,LogLevel.info); } public warn(message:string) { this.write(message,LogLevel.warn); } public error(message:string) { this...
sagargangipelly/examples
nimbus-ui/nimbusui/src/app/services/logger.service.ts
TypeScript
MethodDeclaration
public info(message:string) { this.write(message,LogLevel.info); }
sagargangipelly/examples
nimbus-ui/nimbusui/src/app/services/logger.service.ts
TypeScript
MethodDeclaration
public warn(message:string) { this.write(message,LogLevel.warn); }
sagargangipelly/examples
nimbus-ui/nimbusui/src/app/services/logger.service.ts
TypeScript
MethodDeclaration
public error(message:string) { this.write(message,LogLevel.error) }
sagargangipelly/examples
nimbus-ui/nimbusui/src/app/services/logger.service.ts
TypeScript
MethodDeclaration
public debug(message:string) { this.write(message,LogLevel.debug) }
sagargangipelly/examples
nimbus-ui/nimbusui/src/app/services/logger.service.ts
TypeScript
MethodDeclaration
public trace(message:string) { this.write(message,LogLevel.trace) }
sagargangipelly/examples
nimbus-ui/nimbusui/src/app/services/logger.service.ts
TypeScript
MethodDeclaration
public write(logMessage: string, logLevel: LogLevel) { let logEntry = new LogEntry(logMessage,new Date(), logLevel); console.log(logEntry.message + logEntry.time + logEntry.level); }
sagargangipelly/examples
nimbus-ui/nimbusui/src/app/services/logger.service.ts
TypeScript
FunctionDeclaration
function _max<T extends number | string | Date>(a: T, b: T) { return a > b ? a : b }
Jozty/Fae
max.ts
TypeScript
TypeAliasDeclaration
// @types type Max_2<T extends number | string | Date> = (b: T) => T
Jozty/Fae
max.ts
TypeScript
TypeAliasDeclaration
type Max_1<T extends number | string | Date> = (a: T) => T
Jozty/Fae
max.ts
TypeScript
TypeAliasDeclaration
// prettier-ignore type _Max<T extends number | string | Date> = & ((a: T, b?: PH) => Max_2<T>) & ((a: PH, b: T) => Max_1<T>) & ((a: T, b: T) => T)
Jozty/Fae
max.ts
TypeScript
TypeAliasDeclaration
type Max = _Max<number> & _Max<string> & _Max<Date>
Jozty/Fae
max.ts
TypeScript
ArrowFunction
(props: NavProps) => { const { active } = props const [user, loading] = useAuthState() const router = useRouter() return ( <div className={style.nav}> <div> <Image src="/icon.png" alt="Site Icon" width={30} height={30} className={style.button} onClick={()
RGBHack/webshare
components/UI/Nav.tsx
TypeScript
MethodDeclaration
async ()
RGBHack/webshare
components/UI/Nav.tsx
TypeScript
ClassDeclaration
export class Option { wrappedOption: IOption; disabled: boolean; highlighted: boolean; selected: boolean; shown: boolean; group: boolean; constructor(option: IOption) { this.wrappedOption = option; this.disabled = false; this.highlighted = false; this.sel...
mayuranjan/the-hawker-front-end
src/app/typescripts/angular-bootstrap-md/pro/material-select/option.ts
TypeScript
ClassDeclaration
export declare class ShapeUtils { static wrapToShape(obj: any): AShape; }
phovea/phovea_core
dist/geom/ShapeUtils.d.ts
TypeScript
MethodDeclaration
static wrapToShape(obj: any): AShape;
phovea/phovea_core
dist/geom/ShapeUtils.d.ts
TypeScript
InterfaceDeclaration
export interface ITextData { formats: TextFormat[], elementFormats: ElementFormat[], formatIndices: number[], text: string, processedIdx: number, creationResult: string, spaces: NumberMap<boolean>, lineBreaks: NumberMap<number>, charWidths: number[], }
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
EnumDeclaration
const enum CHAR_CODES { TAB = 9, LF = 10, CR = 13, SPACE = 32, BS = 92, N = 110, R = 114, }
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
public setTextDataDirty() { this._textData = null; }
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
private _convertContentToTextData() { if (this._textData) { return this._textData; } this._textData = { text: '', formats: [], elementFormats: [], formatIndices: [], processedIdx: 0, creationResult: null, spaces: {}, lineBreaks: {}, charWidths: [] }; this.resolveGroupElements(th...
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
private resolveGroupElements(content: ContentElement) { if (content.axClassName == 'flash.text.engine.TextElement') { const text = content.text; const elementFormat = content.elementFormat; let tf; if (elementFormat) tf = elementFormat.createAwayTextformat(); else { tf = new TextFormat(); ...
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
public createTextLine( previousLine?: TextLine, width?: number, lineOffset?: number, fitSomething?: boolean): TextLine { if (!this._textData) { this._textLines = []; this._convertContentToTextData(); } if (this._tabStops && this._tabStops.buffer.length > 0) { console.warn('this._tabStops is no...
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
public recreateTextLine(textLine: TextLine, previousLine?: TextLine, width?: number, lineOffset?: number, fitSomething?: boolean): TextLine { // @todo Debug.throwPIR('playerglobals/text/engine/TextBlock', 'recreateTextLine', ''); return new (<any> this.sec).flash.text.engine.TextLine(); }
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
public findNextAtomBoundary(afterCharIndex: number /*int*/): number /*int*/ { // @todo Debug.throwPIR('playerglobals/text/engine/TextBlock', 'findNextAtomBoundary', ''); return null; }
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
public findPreviousAtomBoundary(beforeCharIndex: number /*int*/): number /*int*/ { // @todo Debug.throwPIR('playerglobals/text/engine/TextBlock', 'findPreviousAtomBoundary', ''); return null; }
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
public findNextWordBoundary(afterCharIndex: number /*int*/): number /*int*/ { // @todo Debug.throwPIR('playerglobals/text/engine/TextBlock', 'findNextWordBoundary', ''); return null; }
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
public findPreviousWordBoundary(beforeCharIndex: number /*int*/): number /*int*/ { // @todo Debug.throwPIR('playerglobals/text/engine/TextBlock', 'findPreviousWordBoundary', ''); return null; }
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
public getTextLineAtCharIndex(charIndex: number /*int*/): TextLine { // @todo Debug.throwPIR('playerglobals/text/engine/TextBlock', 'getTextLineAtCharIndex', ''); return null; }
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
public releaseLineCreationData(): void { // @todo Debug.throwPIR('playerglobals/text/engine/TextBlock', 'releaseLineCreationData', ''); }
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
public releaseLines(firstLine: TextLine, lastLine: TextLine): void { //console.warn('[TextBlock] ' + this._id + ' - releaseLines not implemented'); if (this._textLines.length == 0) return; if (firstLine == this._textLines[0] && lastLine == this._textLines[this._textLines.length - 1]) { if (textLinePool....
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
public dump(): string { // @todo Debug.throwPIR('playerglobals/text/engine/TextBlock', 'dump', ''); return null; }
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
public DoCreateTextLine( previousLine: TextLine, width: number, lineOffset: number = 0, fitSomething: boolean = false, reuseLine: TextLine = null): TextLine { // @todo Debug.throwPIR('playerglobals/text/engine/TextBlock', 'DoCreateTextLine', ''); return null; }
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
public getTabStops(): any/*ASVector<flash.text.engine.TabStop>*/ { noLogs || console.log('[TextBlock] ' + this._id + ' - getTabStops', this._tabStops); return this._tabStops; }
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
public setTabStops(value: any/*ASVector<flash.text.engine.TabStop>*/) { noLogs || console.log('[TextBlock] ' + this._id + ' - setTabStops not implemented', value); this._tabStops = value; }
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
public getTextJustifier(): TextJustifier { noLogs || console.log('[TextBlock] ' + this._id + ' - getTextJustifier', this._textJustifier); return this._textJustifier; }
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
MethodDeclaration
public setTextJustifier(value: TextJustifier) { noLogs || console.log('[TextBlock] ' + this._id + ' - setTextJustifier', value); this._textJustifier = value; }
awayfl/playerglobal
lib/text/engine/TextBlock.ts
TypeScript
ArrowFunction
(role) => { this.userRole = role; }
Dev49199/DroneSym
dronesym-frontend/src/app/user-view/user-view.component.ts
TypeScript
ClassDeclaration
@Component({ selector: 'app-user-view', templateUrl: './user-view.component.html', styleUrls: ['./user-view.component.css'] }) export class UserViewComponent implements AfterViewInit { userRole :string; constructor(private router: Router, private userService: UserService) { this.userService.getUserRole(...
Dev49199/DroneSym
dronesym-frontend/src/app/user-view/user-view.component.ts
TypeScript
MethodDeclaration
ngAfterViewInit(){ this.router.navigate(['dashboard/map']); }
Dev49199/DroneSym
dronesym-frontend/src/app/user-view/user-view.component.ts
TypeScript
MethodDeclaration
logout(){ this.userService.logout(); this.router.navigate(['login']); }
Dev49199/DroneSym
dronesym-frontend/src/app/user-view/user-view.component.ts
TypeScript
InterfaceDeclaration
interface Channels$SelectableChannelCloser { implCloseChannel(arg0: java.nio.channels.SelectableChannel): void implReleaseChannel(arg0: java.nio.channels.SelectableChannel): void }
wizawu/1c
@types/jdk/jdk.nio.Channels$SelectableChannelCloser.d.ts
TypeScript
ArrowFunction
resolve => { process.stdin.once('data', (data) => { const input = data.toString() // special keys switch (input) { case '\u001B\u005B\u0041': return resolve(GameInput.UP) case '\u001B\u005B\u0042': return resolve(GameInput.DOWN) case '\u001B\u005B\u0043': re...
TheEmrio/nim-game
src/Interface.ts
TypeScript
ArrowFunction
(data) => { const input = data.toString() // special keys switch (input) { case '\u001B\u005B\u0041': return resolve(GameInput.UP) case '\u001B\u005B\u0042': return resolve(GameInput.DOWN) case '\u001B\u005B\u0043': return resolve(GameInput.MORE) case '\...
TheEmrio/nim-game
src/Interface.ts
TypeScript
ArrowFunction
() => this.draw()
TheEmrio/nim-game
src/Interface.ts
TypeScript
EnumDeclaration
enum UIStep { TITLE_SCREEN, OPTIONS, IN_GAME, GAME_SUMMARY }
TheEmrio/nim-game
src/Interface.ts
TypeScript
EnumDeclaration
enum GameOption { PLAYER_1_NAME, PLAYER_2_NAME, STACKS_COUNT, MAX_STICKS_PER_TURN, SUBMIT }
TheEmrio/nim-game
src/Interface.ts
TypeScript
MethodDeclaration
// get private async getGameInput (): Promise<Symbol | string> { return new Promise(resolve => { process.stdin.once('data', (data) => { const input = data.toString() // special keys switch (input) { case '\u001B\u005B\u0041': return resolve(GameInput.UP) case '\u00...
TheEmrio/nim-game
src/Interface.ts
TypeScript
MethodDeclaration
// reset the screen, used before each UI draw private reset (): void { term.clear().move(2, 2) term.styleReset().bold.cyan('Nim Game').styleReset('\n\n') }
TheEmrio/nim-game
src/Interface.ts
TypeScript
MethodDeclaration
// title screen private async printTitleScreen (): Promise<void> { this.reset() term(' Press any key to start...') await this.getGameInput() this.step = UIStep.OPTIONS }
TheEmrio/nim-game
src/Interface.ts
TypeScript