type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
(...args: any[]): void => { if (errorListener !== undefined) { emitter.removeListener("error", errorListener); } resolve(args); }
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
ArrowFunction
(err: any): void => { emitter.removeListener(name, eventListener); reject(err); }
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
InterfaceDeclaration
export interface WrappedFunction extends Function { listener: GenericFunction; }
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
InterfaceDeclaration
interface AsyncIterable { // deno-lint-ignore no-explicit-any next(): Promise<IteratorResult<any, any>>; // deno-lint-ignore no-explicit-any return(): Promise<IteratorResult<any, any>>; throw(err: Error): void; // deno-lint-ignore no-explicit-any [Symbol.asyncIterator](): any; }
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
TypeAliasDeclaration
// deno-lint-ignore no-explicit-any export type GenericFunction = (...args: any[]) => any;
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
private _addListener( eventName: string | symbol, listener: GenericFunction | WrappedFunction, prepend: boolean, ): this { this.emit("newListener", eventName, listener); if (this._events.has(eventName)) { const listeners = this._events.get(eventName) as Array< GenericFunction | Wrap...
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** Alias for emitter.on(eventName, listener). */ public addListener( eventName: string | symbol, listener: GenericFunction | WrappedFunction, ): this { return this._addListener(eventName, listener, false); }
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** * Synchronously calls each of the listeners registered for the event named * eventName, in the order they were registered, passing the supplied * arguments to each. * @return true if the event had listeners, false otherwise */ // deno-lint-ignore no-explicit-any public emit(eventName: string | symbol...
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** * Returns an array listing the events for which the emitter has * registered listeners. */ public eventNames(): [string | symbol] { return Array.from(this._events.keys()) as [string | symbol]; }
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** * Returns the current max listener value for the EventEmitter which is * either set by emitter.setMaxListeners(n) or defaults to * EventEmitter.defaultMaxListeners. */ public getMaxListeners(): number { return this.maxListeners || EventEmitter.defaultMaxListeners; }
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** * Returns the number of listeners listening to the event named * eventName. */ public listenerCount(eventName: string | symbol): number { if (this._events.has(eventName)) { return (this._events.get(eventName) as GenericFunction[]).length; } else { return 0; } }
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
static listenerCount( emitter: EventEmitter, eventName: string | symbol, ): number { return emitter.listenerCount(eventName); }
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
private _listeners( target: EventEmitter, eventName: string | symbol, unwrap: boolean, ): GenericFunction[] { if (!target._events.has(eventName)) { return []; } const eventListeners = target._events.get(eventName) as GenericFunction[]; return unwrap ? this.unwrapListeners(eve...
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
private unwrapListeners(arr: GenericFunction[]): GenericFunction[] { const unwrappedListeners = new Array(arr.length) as GenericFunction[]; for (let i = 0; i < arr.length; i++) { // deno-lint-ignore no-explicit-any unwrappedListeners[i] = (arr[i] as any)["listener"] || arr[i]; } return unwr...
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** Returns a copy of the array of listeners for the event named eventName.*/ public listeners(eventName: string | symbol): GenericFunction[] { return this._listeners(this, eventName, true); }
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** * Returns a copy of the array of listeners for the event named eventName, * including any wrappers (such as those created by .once()). */ public rawListeners( eventName: string | symbol, ): Array<GenericFunction | WrappedFunction> { return this._listeners(this, eventName, false); }
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** Alias for emitter.removeListener(). */ public off(eventName: string | symbol, listener: GenericFunction): this { return this.removeListener(eventName, listener); }
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** * Adds the listener function to the end of the listeners array for the event * named eventName. No checks are made to see if the listener has already * been added. Multiple calls passing the same combination of eventName and * listener will result in the listener being added, and called, multiple * ...
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** * Adds a one-time listener function for the event named eventName. The next * time eventName is triggered, this listener is removed and then invoked. */ public once(eventName: string | symbol, listener: GenericFunction): this { const wrapped: WrappedFunction = this.onceWrap(eventName, listener); th...
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
// Wrapped function that calls EventEmitter.removeListener(eventName, self) on execution. private onceWrap( eventName: string | symbol, listener: GenericFunction, ): WrappedFunction { const wrapper = function ( this: { eventName: string | symbol; listener: GenericFunction; ra...
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** * Adds the listener function to the beginning of the listeners array for the * event named eventName. No checks are made to see if the listener has * already been added. Multiple calls passing the same combination of * eventName and listener will result in the listener being added, and * called, mul...
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** * Adds a one-time listener function for the event named eventName to the * beginning of the listeners array. The next time eventName is triggered, * this listener is removed, and then invoked. */ public prependOnceListener( eventName: string | symbol, listener: GenericFunction, ): this { c...
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** Removes all listeners, or those of the specified eventName. */ public removeAllListeners(eventName?: string | symbol): this { if (this._events === undefined) { return this; } if (eventName) { if (this._events.has(eventName)) { const listeners = (this._events.get(eventName) as Array<...
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** * Removes the specified listener from the listener array for the event * named eventName. */ public removeListener( eventName: string | symbol, listener: GenericFunction, ): this { if (this._events.has(eventName)) { const arr: | Array<GenericFunction | WrappedFunction> |...
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** * By default EventEmitters will print a warning if more than 10 listeners * are added for a particular event. This is a useful default that helps * finding memory leaks. Obviously, not all events should be limited to just * 10 listeners. The emitter.setMaxListeners() method allows the limit to be * m...
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** * Creates a Promise that is fulfilled when the EventEmitter emits the given * event or that is rejected when the EventEmitter emits 'error'. The Promise * will resolve with an array of all the arguments emitted to the given event. */ public static once( emitter: EventEmitter | EventTarget, name:...
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
/** * Returns an AsyncIterator that iterates eventName events. It will throw if * the EventEmitter emits 'error'. It removes all listeners when exiting the * loop. The value returned by each iteration is an array composed of the * emitted event arguments. */ public static on( emitter: EventEmitter, ...
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
// deno-lint-ignore no-explicit-any next(): Promise<IteratorResult<any>> { // First, we consume all unread events // deno-lint-ignore no-explicit-any const value: any = unconsumedEventValues.shift(); if (value) { return Promise.resolve(createIterResult(value, false)); }...
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
// deno-lint-ignore no-explicit-any return(): Promise<IteratorResult<any>> { emitter.removeListener(event, eventHandler); emitter.removeListener("error", errorHandler); finished = true; for (const promise of unconsumedPromises) { promise.resolve(createIterResult(undefined, tru...
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
throw(err: Error): void { error = err; emitter.removeListener(event, eventHandler); emitter.removeListener("error", errorHandler); }
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
MethodDeclaration
// deno-lint-ignore no-explicit-any [Symbol.asyncIterator](): any { return this; }
0xe/swc
crates/swc_bundler/tests/.cache/deno/f3fc479f331dd963cd2b96063df6bf047890f887.ts
TypeScript
ArrowFunction
(type) => Item
fullajtar/bachelors_thesis
src/product/product.entity.ts
TypeScript
ArrowFunction
(item) => item.invoiceItemList
fullajtar/bachelors_thesis
src/product/product.entity.ts
TypeScript
ArrowFunction
(type) => Invoice
fullajtar/bachelors_thesis
src/product/product.entity.ts
TypeScript
ArrowFunction
(invoice) => invoice.invoiceItemLists
fullajtar/bachelors_thesis
src/product/product.entity.ts
TypeScript
ArrowFunction
(type) => Order
fullajtar/bachelors_thesis
src/product/product.entity.ts
TypeScript
ArrowFunction
(order) => order.invoiceItemLists
fullajtar/bachelors_thesis
src/product/product.entity.ts
TypeScript
ClassDeclaration
@Entity() export class Product extends BaseEntity { @PrimaryGeneratedColumn() id: number; @Column( "decimal", {scale: 2} ) quantity: number; @Column( "decimal", {scale: 2} ) discount: number; @ManyToOne((type) => Item, (item) => item.invoiceItemList, { eager: true, cascade: tr...
fullajtar/bachelors_thesis
src/product/product.entity.ts
TypeScript
ArrowFunction
() => { this.fs.getBefriendedUsers(this.profileservice.user).subscribe(data=> { data.forEach(friendship => { if(friendship.user1.id!=this.profileservice.user.id) { this.cs.getKeyUser(friendship.user1).subscribe(data => { this.allFriends.push(data); }) ...
Connect-HTL-Leonding/Connect
application/application/src/app/pages/meetup-data/meetup-data.page.ts
TypeScript
ArrowFunction
data=> { data.forEach(friendship => { if(friendship.user1.id!=this.profileservice.user.id) { this.cs.getKeyUser(friendship.user1).subscribe(data => { this.allFriends.push(data); }) } else { this.cs.getKeyUser(friendship.user2).su...
Connect-HTL-Leonding/Connect
application/application/src/app/pages/meetup-data/meetup-data.page.ts
TypeScript
ArrowFunction
friendship => { if(friendship.user1.id!=this.profileservice.user.id) { this.cs.getKeyUser(friendship.user1).subscribe(data => { this.allFriends.push(data); }) } else { this.cs.getKeyUser(friendship.user2).subscribe(data => { ...
Connect-HTL-Leonding/Connect
application/application/src/app/pages/meetup-data/meetup-data.page.ts
TypeScript
ArrowFunction
data => { this.allFriends.push(data); }
Connect-HTL-Leonding/Connect
application/application/src/app/pages/meetup-data/meetup-data.page.ts
TypeScript
ArrowFunction
data=> { let dataForPost: Array<Object> = new Array(); this.selectedFriends.forEach(friend => { // The same as Meeting_User in the backend dataForPost.push({ meeting: data, user_id: friend.id, status: "pending", }) }); this.ms.setOtherUs...
Connect-HTL-Leonding/Connect
application/application/src/app/pages/meetup-data/meetup-data.page.ts
TypeScript
ArrowFunction
friend => { // The same as Meeting_User in the backend dataForPost.push({ meeting: data, user_id: friend.id, status: "pending", }) }
Connect-HTL-Leonding/Connect
application/application/src/app/pages/meetup-data/meetup-data.page.ts
TypeScript
ArrowFunction
data=> { this.contactlistService.contactlistObservable.next("contactListUpdate"); this.ms.createMeetupObservable.next("newMeetup:" + this.selectedRoom.id); }
Connect-HTL-Leonding/Connect
application/application/src/app/pages/meetup-data/meetup-data.page.ts
TypeScript
ClassDeclaration
@Component({ selector: 'app-meetup-data', templateUrl: './meetup-data.page.html', styleUrls: ['./meetup-data.page.scss'], }) export class MeetupDataPage implements OnInit { public http; public day = null; public timeOfDay = null; public time : Date= null; public meetupName : String =null; public...
Connect-HTL-Leonding/Connect
application/application/src/app/pages/meetup-data/meetup-data.page.ts
TypeScript
MethodDeclaration
ngOnInit() { this.profileservice.getUser().add(() => { this.fs.getBefriendedUsers(this.profileservice.user).subscribe(data=> { data.forEach(friendship => { if(friendship.user1.id!=this.profileservice.user.id) { this.cs.getKeyUser(friendship.user1).subscribe(data => { ...
Connect-HTL-Leonding/Connect
application/application/src/app/pages/meetup-data/meetup-data.page.ts
TypeScript
MethodDeclaration
setKeyUser(user) { }
Connect-HTL-Leonding/Connect
application/application/src/app/pages/meetup-data/meetup-data.page.ts
TypeScript
MethodDeclaration
public createMeeting() { this.time = new Date(this.day); this.time.setUTCHours(new Date(this.timeOfDay).getHours()); this.time.setUTCMinutes(new Date(this.timeOfDay).getMinutes()); this.time.setUTCSeconds(new Date(this.timeOfDay).getSeconds()); this.meetup = new Meeting(0, this.meetupName, this.tim...
Connect-HTL-Leonding/Connect
application/application/src/app/pages/meetup-data/meetup-data.page.ts
TypeScript
MethodDeclaration
async dismissPopover() { await this.popoverController.dismiss(); }
Connect-HTL-Leonding/Connect
application/application/src/app/pages/meetup-data/meetup-data.page.ts
TypeScript
MethodDeclaration
async dismissAll() { await this.popoverController.dismiss(); this.mp.dismissModal(); }
Connect-HTL-Leonding/Connect
application/application/src/app/pages/meetup-data/meetup-data.page.ts
TypeScript
MethodDeclaration
/** * @returns The render root of the footer contents. */ private _createFooterRenderRoot() { const footer = this.ownerDocument!.createElement(`${ddsPrefix}-footer-composite`); this.parentNode?.insertBefore(footer, this.nextSibling); return footer; }
annawen1/carbon-for-ibm-dotcom
packages/web-components/src/components/dotcom-shell/dotcom-shell-composite.ts
TypeScript
MethodDeclaration
/** * @returns The render root of the masthead contents. */ private _createMastheadRenderRoot() { const masthead = this.ownerDocument!.createElement(`${ddsPrefix}-masthead-composite`); this.parentNode?.insertBefore(masthead, this); return masthead; }
annawen1/carbon-for-ibm-dotcom
packages/web-components/src/components/dotcom-shell/dotcom-shell-composite.ts
TypeScript
MethodDeclaration
// eslint-disable-next-line class-methods-use-this firstUpdated() { globalInit(); }
annawen1/carbon-for-ibm-dotcom
packages/web-components/src/components/dotcom-shell/dotcom-shell-composite.ts
TypeScript
MethodDeclaration
update(changedProperties) { super.update(changedProperties); if (!this._mastheadRenderRoot) { this._mastheadRenderRoot = this._createMastheadRenderRoot(); } const { activateSearch, authenticatedProfileItems, platform, platformUrl, collatorCountryName, current...
annawen1/carbon-for-ibm-dotcom
packages/web-components/src/components/dotcom-shell/dotcom-shell-composite.ts
TypeScript
MethodDeclaration
updated(changedProperties) { super.updated(changedProperties); // moving universal banner outside of dotcom shell if placed within if (this.querySelector('dds-universal-banner')) { this.ownerDocument .querySelector('dds-masthead-composite') ?.before(this.querySelector('dds-universal-...
annawen1/carbon-for-ibm-dotcom
packages/web-components/src/components/dotcom-shell/dotcom-shell-composite.ts
TypeScript
MethodDeclaration
render() { return html` <dds-dotcom-shell> <slot></slot> </dds-dotcom-shell> `; }
annawen1/carbon-for-ibm-dotcom
packages/web-components/src/components/dotcom-shell/dotcom-shell-composite.ts
TypeScript
ArrowFunction
async (args) => { const tests = loadTestCases(); // Polarion Test Case Importer: https://mojo.redhat.com/docs/DOC-1075945 // // prepare the testcases xml document const testcases = tests.map((t) => ({ $: { id: t.id }, title: `${t.id} - ${t.category} - ${...
R-Lawton/integreatly-operator
test-cases/tools/cmd/polarion.ts
TypeScript
ArrowFunction
(t) => ({ $: { id: t.id }, title: `${t.id} - ${t.category} - ${t.title}`, description: t.file.link, "custom-fields": [ { "custom-field": [ // Level { $: { content: "component", id: "casel...
R-Lawton/integreatly-operator
test-cases/tools/cmd/polarion.ts
TypeScript
ArrowFunction
async (args) => { const jira = new Jira(args.jiraUsername, args.jiraPassword); const epic = await jira.findIssue(args.epic); assertEpic(epic); const runs = await loadTestRuns(jira, `"Epic Link" = ${epic.key}`); const testcases = runs .filter((r) => r.result !== "S...
R-Lawton/integreatly-operator
test-cases/tools/cmd/polarion.ts
TypeScript
ArrowFunction
(r) => r.result !== "Skipped"
R-Lawton/integreatly-operator
test-cases/tools/cmd/polarion.ts
TypeScript
ArrowFunction
(r) => { const testcase: any = { $: { name: r.title }, properties: { property: { $: { name: "polarion-testcase-id", value: r.id }, }, }, }; ...
R-Lawton/integreatly-operator
test-cases/tools/cmd/polarion.ts
TypeScript
ArrowFunction
(args: Argv): Argv => { return args.command(testCase).command(testRun); }
R-Lawton/integreatly-operator
test-cases/tools/cmd/polarion.ts
TypeScript
ArrowFunction
() => { // nothing }
R-Lawton/integreatly-operator
test-cases/tools/cmd/polarion.ts
TypeScript
InterfaceDeclaration
interface TestCaseArgs { polarionUsername: string; polarionPassword: string; dumpOnly: boolean; }
R-Lawton/integreatly-operator
test-cases/tools/cmd/polarion.ts
TypeScript
InterfaceDeclaration
interface TestRunArgs { polarionUsername: string; polarionPassword: string; jiraUsername: string; jiraPassword: string; epic: string; dumpOnly: boolean; }
R-Lawton/integreatly-operator
test-cases/tools/cmd/polarion.ts
TypeScript
ClassDeclaration
@Module({}) export class SharedmodulesModule {}
Prathmesh-codes/BasicNestJS
src/sharedmodules/sharedmodules.module.ts
TypeScript
ClassDeclaration
@NgModule({ imports: [CommonModule], declarations: [ MapTreeViewItemIcon, MapTreeViewItemName, MapTreeViewItemOptionButtons, MapTreeViewLevel, IsNodeLeafPipe, MapTreeViewItemIconClassPipe, MapTreeViewItemIconColorPipe ], exports: [MapTreeViewLevel] }) export class MapTreeViewLevelModule {}
MaibornWolff/codecharta
visualization/app/codeCharta/ui/mapTreeView/mapTreeViewLevel.module.ts
TypeScript
InterfaceDeclaration
/** * Attach multiple bodies together to interact in unique ways. * @link [Joint](https://love2d.org/wiki/Joint) */ export interface Joint<T extends JointTypes = JointTypes> extends Type<T> { /** * Explicitly destroys the Joint. When you don't have time to wait for garbage * col...
alihsaas/love-typescript-definitions
typings/love.physics/types/Joint.d.ts
TypeScript
TypeAliasDeclaration
export type JointTypes = | "DistanceJoint" | "FrictionJoint" | "GearJoint" | "MotorJoint" | "MouseJoint" | "PrismaticJoint" | "PulleyJoint" | "RevoluteJoint" | "RopeJoint" | "WeldJoint" | "WheelJoint";
alihsaas/love-typescript-definitions
typings/love.physics/types/Joint.d.ts
TypeScript
ArrowFunction
element => { let th = document.createElement('th'); th.scope = "col"; th.textContent = element.name; th.style.width = element.width; tr.appendChild(th); }
veddermatic/PrettyScribe
src/rendererAoS.ts
TypeScript
TypeAliasDeclaration
type TableHeaderEntry = { name: string; width: string; };
veddermatic/PrettyScribe
src/rendererAoS.ts
TypeScript
MethodDeclaration
protected createTable(heading: { name: string, width: string }[]): HTMLTableElement { const table = document.createElement('table'); const thead = document.createElement('thead'); table.appendChild(thead); thead.classList.add('aos_light'); const tr = document.createElement('tr')...
veddermatic/PrettyScribe
src/rendererAoS.ts
TypeScript
MethodDeclaration
private internalKeyword(keyword: string): boolean { // Internal keywords _not_ all upper case. const kw_upper = keyword.toUpperCase(); if (kw_upper != keyword) { return true; } return false; }
veddermatic/PrettyScribe
src/rendererAoS.ts
TypeScript
MethodDeclaration
private renderAbilityMap(root: HTMLElement, title: string, abilities: Map<string, string>): void { let header = document.createElement('h4'); header.textContent = title; root.appendChild(header); for (let ability of abilities) { let a = document.createElement('p'); ...
veddermatic/PrettyScribe
src/rendererAoS.ts
TypeScript
MethodDeclaration
private renderSpells(root: HTMLElement, spells: AoSSpell[]): void { const headerInfo = [{ name: "NAME", width: '25%' }, { name: "CASTING VALUE", width: '15%' }, { name: "RANGE", width: '10%' }, { name: "DESCRIPTION", width: '50%' }]; const table = this.createTable(headerInfo); table.classList.a...
veddermatic/PrettyScribe
src/rendererAoS.ts
TypeScript
FunctionDeclaration
declare function ExtrinsicDisplay({ defaultValue, isDisabled, isError, isPrivate, label, onChange, onEnter, onError, onEscape, withLabel }: Props): React.ReactElement<Props>;
UniqueNetwork/unique-ui
dist/react-components/src/Extrinsic.d.ts
TypeScript
InterfaceDeclaration
interface Props { className?: string; defaultValue: SubmittableExtrinsicFunction<'promise'>; isDisabled?: boolean; isError?: boolean; isPrivate?: boolean; label?: React.ReactNode; onChange: (method?: SubmittableExtrinsic<'promise'>) => void; onEnter?: () => void; onError?: (error?: ...
UniqueNetwork/unique-ui
dist/react-components/src/Extrinsic.d.ts
TypeScript
FunctionDeclaration
export function defaultUserCollection(): UserCollection { return { users: [], page: 0, pageSize: 1, totalCount: 0, } as UserCollection; }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export function isValidUser(user: User): boolean { return (null != user) && (EmptyUserId != user.id) && ('00000000-0000-0000-0000-000000000000' != user.id); }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export function sortByName(users: User[]): void { users.sort((first, second) => { return first.name.toLocaleLowerCase().localeCompare(second.name.toLocaleLowerCase()); }); }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function getCurrentUser(): Promise<CurrentUser> { const result = await RequestHandler.get({ path: 'users/current' }) as CurrentUser; UserCache.process(result.user); return result; }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function getUsers(request: GetUsersRequest): Promise<UserCollection> { const result = await RequestHandler.get({ path: 'users', query: request }) as UserCollection; UserCache.processCollection(result); return result; }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function getUserByName(name: string): Promise<User> { const result = (await RequestHandler.get({ path: 'users/name/' + encodeURIComponent(name) }) as SingleUser).user; UserCache.process(result); return result; }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function getUsersSubscribedToThread(threadId: string): Promise<User[]> { const collection = (await RequestHandler.get({ path: 'users/subscribed/thread/' + encodeURIComponent(threadId) }) as UserCollection); collection.users = collection.users || []; UserReposi...
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function getOnlineUsers(): Promise<User[]> { const result = (await RequestHandler.get({ path: 'users/online', }) as OnlineUserCollection).online_users || []; UserCache.processUsers(result); return result; }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function getMultipleById(ids: string[]): Promise<string[]> { return (await RequestHandler.get({ path: 'users/multiple/ids/' + encodeURIComponent(ids.join(',')) })).users; }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function getMultipleByName(names: string[]): Promise<string[]> { return (await RequestHandler.get({ path: 'users/multiple/names/' + encodeURIComponent(names.join(',')) })).user_ids; }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function createUserName(name: string): Promise<void> { await RequestHandler.post({ path: 'users', stringData: name }); }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function editUserName(userId: string, newName: string): Promise<void> { await RequestHandler.put({ path: 'users/name/' + encodeURIComponent(userId), stringData: newName }); }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function editUserInfo(userId: string, newInfo: string): Promise<void> { await RequestHandler.put({ path: 'users/info/' + encodeURIComponent(userId), stringData: newInfo }); }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function editUserTitle(userId: string, newTitle: string): Promise<void> { await RequestHandler.put({ path: 'users/title/' + encodeURIComponent(userId), stringData: newTitle }); }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function editUserSignature(userId: string, newSignature: string): Promise<void> { await RequestHandler.put({ path: 'users/signature/' + encodeURIComponent(userId), stringData: newSignature }); }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function editUserAttachmentQuota(userId: string, newQuota: number): Promise<void> { await RequestHandler.put({ path: 'users/attachment_quota/' + encodeURIComponent(userId) + '/' + encodeURIComponent(newQuota.toString()) }); }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function deleteUserLogo(userId: string): Promise<void> { await RequestHandler.requestDelete({ path: 'users/logo/' + encodeURIComponent(userId) }); }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function editUserLogo(userId: string, fileContent: ArrayBuffer): Promise<void> { await RequestHandler.put({ path: 'users/logo/' + encodeURIComponent(userId), binaryData: fileContent }); }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function deleteUser(userId: string): Promise<void> { await RequestHandler.requestDelete({ path: 'users/' + encodeURIComponent(userId) }); }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function searchUsersByName(name: string): Promise<User[]> { if (name && name.length) { const searchResult = await RequestHandler.get({ path: 'users/search/' + encodeURIComponent(name), query: {} }) as UserSearchResult; const pag...
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function getReceivedVotesHistory(): Promise<VoteHistory> { return await RequestHandler.get({ path: 'users/votehistory' }) as VoteHistory; }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript
FunctionDeclaration
export async function getQuotedHistory(): Promise<QuoteHistory> { const result = await RequestHandler.get({ path: 'users/quotedhistory' }) as QuoteHistory; UserCache.processMessages(result.messages); return result; }
danij/Forum.WebClient
src/services/userRepository.ts
TypeScript