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.toggleCameraViewCommand,
]);
return (
<NavigationWidget
horizontalItems={horizontalItems}
verticalItems={verticalItems}
/>
);
} | 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] = useState(true);
const [stateFilters, setFilters] = useState<ListFilter>(filters);
const [allData, setAllData] = useState<Array<T>>([]);
const client = useQueryClient();
useEffect(() => {
let unmounted = false;
client.getMutationCache().subscribe((mutation) => {
if (
mutation?.options.mutationKey === apiKey ||
-1 < (mutation?.options.mutationKey || []).indexOf(apiKey) ||
(linkedId && -1 < (mutation?.options.mutationKey || []).indexOf(linkedId))
) {
if (!unmounted) {
setCurrentPage(0);
}
}
});
return (): any => (unmounted = true);
}, []);
const { data, lastPage } = useQueryCollection<T>(
[apiKey, { currentPage, itemsPerPage, stateFilters, linkedId }],
() => apiMethod(currentPage, itemsPerPage, stateFilters),
{
enabled: enabled && 0 < currentPage,
},
);
useEffect(() => {
let unmounted = false;
if (data) {
setAllData([...(1 === currentPage ? [] : allData), ...data]);
if (currentPage < lastPage) {
if (!unmounted) {
setCurrentPage(currentPage + 1);
}
} else {
if (!unmounted) {
setLoading(false);
}
}
}
return (): any => (unmounted = true);
}, [currentPage, data, lastPage]);
useEffect(() => {
let unmounted = false;
if (enabled && 0 === currentPage && !unmounted) {
setCurrentPage(currentPage + 1);
}
return (): any => (unmounted = true);
}, [enabled, currentPage]);
useEffect(() => {
let unmounted = false;
if (JSON.stringify(stateFilters) !== JSON.stringify(filters)) {
if (!unmounted) {
setFilters(filters);
}
}
return (): any => (unmounted = true);
}, [filters]);
return {
isLoading: loading,
data: allData,
};
} | 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 || []).indexOf(linkedId))
) {
if (!unmounted) {
setCurrentPage(0);
}
}
});
return (): any => (unmounted = true);
} | 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) {
setCurrentPage(0);
}
}
} | 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 (!unmounted) {
setLoading(false);
}
}
}
return (): any => (unmounted = true);
} | 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 static AssertDefined< T >( mightBeUndefined: T | undefined, message?: string ): asserts mightBeUndefined is Exclude< T, null >
{
Asserts.Assert( mightBeUndefined !== undefined, message );
}
/**
* 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, message );
}
/**
* 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 |
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, message );
} | 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 + 'users/' + uid).set({
name: name,
email: email
});
}
public updateUserInfo(uid: string, displayName: string, bio: string): Promise<string> {
return firebase.database().ref().child(this.tabelPrefix + 'users/' + uid).update({
displayName: displayName,
bio: bio
});
}
public keepInTouch(email: string) {
this.alertService.showToaster('Your email is saved');
return firebase.database().ref().child(this.tabelPrefix + 'touch/').push({
email: email
});
}
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/').push({
company: company,
firstname: firstname,
lastname: lastname,
address: address,
city: city,
postal: postal,
message: message
});
}
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;
}
}
public verificationUserEmail(): Promise<void> {
return firebase.auth().currentUser.sendEmailVerification().then(() => {
// Email sent.
}, (error) => {
// An error happened.
});
}
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 |
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/').push({
company: company,
firstname: firstname,
lastname: lastname,
address: address,
city: city,
postal: postal,
message: message
});
} | 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 HomeModule { } | 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, serviceName: string, options?: msRest.RequestOptionsBase): Promise<Models.TenantAccessGetEntityTagResponse>; | 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: msRest.ServiceCallback<void>): void; | 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,
serviceName,
options
},
getEntityTagOperationSpec,
callback) as Promise<Models.TenantAccessGetEntityTagResponse>;
} | 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, serviceName: string, options?: msRest.RequestOptionsBase): Promise<Models.TenantAccessGetResponse>; | 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.ServiceCallback<Models.AccessInformationContract>): void; | 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(
{
resourceGroupName,
serviceName,
options
},
getOperationSpec,
callback) as Promise<Models.TenantAccessGetResponse>;
} | 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 the current entity state from the header
* response of the GET request or it should be * for unconditional update.
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
*/
update(resourceGroupName: string, serviceName: string, parameters: Models.AccessInformationUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | 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
* response of the GET request or it should be * for unconditional update.
* @param callback The callback
*/
update(resourceGroupName: string, serviceName: string, parameters: Models.AccessInformationUpdateParameters, ifMatch: 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 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
* response of the GET request or it should be * for unconditional update.
* @param options The optional parameters
* @param callback The callback
*/
update(resourceGroupName: string, serviceName: string, parameters: Models.AccessInformationUpdateParameters, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | 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(
{
resourceGroupName,
serviceName,
parameters,
ifMatch,
options
},
updateOperationSpec,
callback);
} | 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: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | 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, callback: msRest.ServiceCallback<void>): void; | 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,
options
},
regeneratePrimaryKeyOperationSpec,
callback);
} | 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, serviceName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | 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, callback: msRest.ServiceCallback<void>): void; | 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,
options
},
regenerateSecondaryKeyOperationSpec,
callback);
} | 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.write(message,LogLevel.error)
}
public debug(message:string) {
this.write(message,LogLevel.debug)
}
public trace(message:string) {
this.write(message,LogLevel.trace)
}
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 |
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.selected = false;
this.shown = true;
this.group = false;
}
get value(): string {
return this.wrappedOption.value;
}
get label(): string {
return this.wrappedOption.label;
}
get icon(): string {
if(this.wrappedOption.icon !== "" && this.wrappedOption.icon !== undefined) {
return this.wrappedOption.icon;
} else {
return "";
}
}
} | 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(this._content);
if (this._textData.formatIndices[this._textData.formatIndices.length - 1] != this._textData.text.length)
this._textData.formatIndices.push(this._textData.text.length);
const formats = this._textData.formats;
const formatsIndicies = this._textData.formatIndices;
/*if (this._textData.text.charCodeAt(this._textData.text.length - 1) == 8233) {
this._textData.text = this._textData.text.substring(0, this._textData.text.length - 1);
}*/
const text = this._textData.text;
this._content.rawText = text;
const spaces = this._textData.spaces;
const lineBreaks = this._textData.lineBreaks;
const charWidths = this._textData.charWidths;
let c = 0;
const form_len = formats.length;
for (let f = 0; f < form_len; f++) {
const tf = formats[f];
tf.font_table.initFontSize(tf.size);
const lastChar = formatsIndicies[f];
for (c; c <= lastChar; c++) {
const char_code = text.charCodeAt(c);
const isLineBreak = char_code === CHAR_CODES.LF || char_code === 8233;
if (isLineBreak) {
lineBreaks[c] = 1;
charWidths[charWidths.length] = 0;
} else {
charWidths[charWidths.length] = tf.font_table.getCharWidth(char_code.toString());
const isSpace = char_code == CHAR_CODES.TAB || char_code == CHAR_CODES.SPACE;
if (isSpace) {
spaces[c] = true;
}
}
}
}
} | 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();
}
this._textData.text += text ? text : '';
this._textData.formats.push(tf);
this._textData.elementFormats.push(elementFormat);
this._textData.formatIndices.push(this._textData.text.length);
}
if (content.axClassName == 'flash.text.engine.GroupElement') {
const group = <GroupElement><any>content;
//noLogs || console.log('resolve GroupElement', group.elementCount);
for (let i = 0; i < group.elementCount; i++) {
this.resolveGroupElements(group.getElementAt(i));
}
}
} | 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 not []', this._tabStops);
}
if (this._textJustifier && this._textJustifier.lineJustification != 'unjustified') {
console.warn('lineJustification is not unjustified', this._textJustifier.lineJustification);
}
if (this._textJustifier && (<any> this._textJustifier).letterSpacing != 0) {
console.warn('letterSpacing is not 0', (<any> this._textJustifier).letterSpacing);
}
if (this._baselineZero != TextBaseline.ROMAN) {
console.warn('_baselineZero is not "roman"', this._baselineZero);
}
noLogs || console.log('[TextBlock] ' + this._id + ' - text',
this._textData.text);
noLogs || console.log('[TextBlock] ' + this._id + ' - createTextLine',
'\n width', width,
'\n previousLine', previousLine,
'\n lineOffset', lineOffset,
'\n fitSomething', fitSomething,
'\n processedIdx', this._textData.processedIdx);
const text = this._textData.text;
let processedIdx = this._textData.processedIdx;
if (processedIdx > text.length) {
this._creationResult = TextLineCreationResult.COMPLETE;
noLogs || console.log('[TextBlock] ' + this._id + ' - all textlines already complete',
processedIdx, text.length);
return null;
}
const formats = this._textData.formats;
const elementFormats = this._textData.elementFormats;
const formatsIndicies = this._textData.formatIndices;
const spaces = this._textData.spaces;
const lineBreaks = this._textData.lineBreaks;
const charWidths = this._textData.charWidths;
const form_len = formats.length;
let c = processedIdx;
let newText = '';
let newWord = '';
let newCharCnt = 0;
const newFormats = [];
const newElementFormats = [];
const newFormatindices = [];
let result = TextLineCreationResult.EMERGENCY; // is valid if its a linebreak or at least one word that fits
let textWidth = 0;
let defaultFormat;
let defaultElementFormat;
loop1:
for (let f = 0; f < form_len; f++) {
if (processedIdx > formatsIndicies[f]) {
continue;
}
const format = formats[f];
defaultFormat = format;
newFormats[newFormats.length] = format;
newElementFormats[newElementFormats.length] = elementFormats[f];
defaultElementFormat = elementFormats[f];
newFormatindices[newFormatindices.length] = 0;
const lastChar = formatsIndicies[f];
for (c; c <= lastChar; c++) {
if (lineBreaks[c] === 1) {
noLogs || console.log('lineBreaks', result, c, text[c]);
newText += newWord;
newCharCnt += newWord.length + 1;
result = TextLineCreationResult.SUCCESS;
this._textData.processedIdx = c;
// remove the linebreak marker so we not stuck in infinite loop
lineBreaks[c] = 2;
break loop1;
}
if (spaces[c]) {
noLogs || console.log('space', result, c, text[c], newWord);
result = TextLineCreationResult.SUCCESS;
newText += newWord;
newCharCnt += newWord.length;
newWord = '';
this._textData.processedIdx = c;
}
if (newWord.length == 1 &&
(newWord.charCodeAt(0) == CHAR_CODES.SPACE || newWord.charCodeAt(0) == CHAR_CODES.TAB)) {
result = TextLineCreationResult.SUCCESS;
newText += newWord;
newCharCnt += newWord.length;
newWord = '';
this._textData.processedIdx = c;
}
textWidth += charWidths[c];
if (textWidth > width - 2) {
noLogs || console.log('text is to wide', 'textWidth', textWidth,
'width', width, newText, result, text[c], newWord);
if (result == TextLineCreationResult.SUCCESS) {
break loop1;
}
newText += newWord;
newCharCnt += newWord.length;
this._textData.processedIdx = c;
break loop1;
}
if (c == text.length) {
newText += newWord;
newCharCnt += newWord.length;
this._textData.processedIdx = c + 1;
break loop1;
}
if (!lineBreaks[c]) {
newWord += text[c];
} else {
newWord += text[c];
processedIdx++;
}
}
newFormatindices[newFormatindices.length - 1] = newText.length + newWord.length - 1;
}
newFormatindices[newFormatindices.length - 1] = newText.length;
if (this._textData.processedIdx >= text.length) {
noLogs || console.log('[TextBlock] ' + this._id + ' - all text processed',
this._textData.processedIdx, text.length);
this._textData.processedIdx++;
result = TextLineCreationResult.COMPLETE;
}
noLogs || console.log('[TextBlock] ' + this._id + ' - textline prepared',
this._textData.processedIdx, `"${newText}"`);
noLogs || console.log('[TextBlock] ' + this._id + ' - all text length',
text.length, 'newCharCnt', newCharCnt, 'processedIdx', processedIdx);
//this._textData.processedIdx = text.length + 1;
if (newFormats.length == 0) {
newFormats[0] = defaultFormat;
newElementFormats[0] = defaultElementFormat;
}
let textLine: TextLine;
for (let c = 0; c < textLinePool.length; c++) {
if (!textLinePool[c].parent && textLinePool[c].free) {
textLine = textLinePool[c];
break;
}
}
if (textLine) {
textLine.setPreviousLine(null);
textLine.setNextLine(null);
textLine['$BguserData'] = null;
(<any> textLine).free = false;
textLine.reUseTextLine(
previousLine,
width,
lineOffset,
fitSomething,
newText, newFormats, newFormatindices,
processedIdx, newCharCnt, newElementFormats);
} else {
textLine = new (<any> this.sec).flash.text.engine.TextLine(
previousLine,
width,
lineOffset,
fitSomething,
newText, newFormats, newFormatindices,
processedIdx, newCharCnt, newElementFormats);
}
this._creationResult = result;
textLine.setTextBlock(this);
this._textLines.push(textLine);
return textLine;
} | 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.length < 100) {
for (let i = 0; i < this._textLines.length; i++) {
(<any> this._textLines[i]).free = true;
if (textLinePool.indexOf(this._textLines[i]) <= 0)
textLinePool.push(this._textLines[i]);
}
}
this._textLines.length = 0;
return;
}
while (firstLine) {
const idx = this._textLines.indexOf(firstLine);
if (idx >= 0) {
this._textLines.splice(idx, 1);
}
(<any> firstLine).free = true;
if (textLinePool.indexOf(firstLine) <= 0)
textLinePool.push(firstLine);
if (firstLine != lastLine)
firstLine = firstLine.nextLine;
else
firstLine = null;
}
} | 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().then((role) => {
this.userRole = role;
})
}
ngAfterViewInit(){
this.router.navigate(['dashboard/map']);
}
logout(){
this.userService.logout();
this.router.navigate(['login']);
}
} | 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': return resolve(GameInput.MORE)
case '\u001B\u005B\u0044': return resolve(GameInput.LESS)
case '\u000A':
case '\u000D': return resolve(GameInput.SUBMIT)
case '\u007F': return resolve(GameInput.BACKSPACE)
}
// Ctrl+C -> quit program
if (input === '\u0003') {
term.processExit(0)
}
// allowed keyboard input (used for player names)
if (input.length === 1 && ('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_+= ').includes(input)) {
return resolve(input)
}
return resolve(GameInput.UNKNOWN)
})
} | 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 '\u001B\u005B\u0044': return resolve(GameInput.LESS)
case '\u000A':
case '\u000D': return resolve(GameInput.SUBMIT)
case '\u007F': return resolve(GameInput.BACKSPACE)
}
// Ctrl+C -> quit program
if (input === '\u0003') {
term.processExit(0)
}
// allowed keyboard input (used for player names)
if (input.length === 1 && ('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_+= ').includes(input)) {
return resolve(input)
}
return resolve(GameInput.UNKNOWN)
} | 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 '\u001B\u005B\u0042': return resolve(GameInput.DOWN)
case '\u001B\u005B\u0043': return resolve(GameInput.MORE)
case '\u001B\u005B\u0044': return resolve(GameInput.LESS)
case '\u000A':
case '\u000D': return resolve(GameInput.SUBMIT)
case '\u007F': return resolve(GameInput.BACKSPACE)
}
// Ctrl+C -> quit program
if (input === '\u0003') {
term.processExit(0)
}
// allowed keyboard input (used for player names)
if (input.length === 1 && ('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_+= ').includes(input)) {
return resolve(input)
}
return resolve(GameInput.UNKNOWN)
})
})
} | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.