type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
InterfaceDeclaration
interface ElementOffset { elementRect: ClientRect|DOMRect; containerRect: ClientRect|DOMRect; offset: Offset; }
RyanCoulsonCA/fgpv-vpgf
packages/ramp-plugin-enhanced-table/src/grid-accessibility.ts
TypeScript
InterfaceDeclaration
interface Offset { top: number; left: number; }
RyanCoulsonCA/fgpv-vpgf
packages/ramp-plugin-enhanced-table/src/grid-accessibility.ts
TypeScript
ArrowFunction
() => { const dispatch = useDispatch(); const description = useSelector((state) => state.registerRoom.description); const onChangeDescription = (event: React.ChangeEvent<HTMLTextAreaElement>) => dispatch(registerRoomActions.setDescription(event.target.value)); return ( <Container> <h2>게스트에게 숙소에...
yourcarrot0214/next-bnb
components/register/RegisterRoomDescription.tsx
TypeScript
ArrowFunction
(state) => state.registerRoom.description
yourcarrot0214/next-bnb
components/register/RegisterRoomDescription.tsx
TypeScript
ArrowFunction
(event: React.ChangeEvent<HTMLTextAreaElement>) => dispatch(registerRoomActions.setDescription(event.target.value))
yourcarrot0214/next-bnb
components/register/RegisterRoomDescription.tsx
TypeScript
ClassDeclaration
export class Test { public BeforeEUMK: boolean; public ForEUMK: boolean; public ForNN: boolean; public ForSelfStudy: boolean; public IsNecessary: boolean; public SetTimeForAllTest: boolean; public IsNew: boolean; public Unlocked: boolean; public CountOfQuestions: number; public SubjectId: number; ...
Kharlap-Sergey/CATSdesigner
modules/tests/src/app/models/test.model.ts
TypeScript
EnumDeclaration
export enum TestType { BeforeEUMK, ForEUMK, ForNN, ForSelfStudy, Control }
Kharlap-Sergey/CATSdesigner
modules/tests/src/app/models/test.model.ts
TypeScript
ArrowFunction
() => { it("should create an ASSIGN_DOCUMENT_ID action", () => { const expected: actionTypes.ASSIGN_DOCUMENT_ID = { type: "ASSIGN_DOCUMENT_ID", payload: { documentId: "document1", baseUrl: "http://some.url" } }; expect(actionCreators.assignDocumentId("document1", "http:...
2-IMMERSE/editor
app/static/__tests__/actions/document.test.ts
TypeScript
ArrowFunction
() => { const expected: actionTypes.ASSIGN_DOCUMENT_ID = { type: "ASSIGN_DOCUMENT_ID", payload: { documentId: "document1", baseUrl: "http://some.url" } }; expect(actionCreators.assignDocumentId("document1", "http://some.url")).toEqual(expected); }
2-IMMERSE/editor
app/static/__tests__/actions/document.test.ts
TypeScript
ClassDeclaration
/** Class representing a MeshNetwork. */ export class MeshNetwork { private readonly client: ServiceFabricClientContext; /** * Create a MeshNetwork. * @param {ServiceFabricClientContext} client Reference to the service client. */ constructor(client: ServiceFabricClientContext) { this.client = client...
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
MethodDeclaration
/** * Creates a Network resource with the specified name, description and properties. If Network * resource with the same name exists, then it is updated with the specified description and * properties. Network resource provides connectivity between application services. * @summary Creates or updates a Netw...
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
MethodDeclaration
/** * @param networkResourceName The identity of the network. * @param networkResourceDescription Description for creating a Network resource. * @param callback The callback */ createOrUpdate(networkResourceName: string, networkResourceDescription: Models.NetworkResourceDescription, callback: msRest.Service...
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
MethodDeclaration
/** * @param networkResourceName The identity of the network. * @param networkResourceDescription Description for creating a Network resource. * @param options The optional parameters * @param callback The callback */ createOrUpdate(networkResourceName: string, networkResourceDescription: Models.NetworkR...
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
MethodDeclaration
createOrUpdate(networkResourceName: string, networkResourceDescription: Models.NetworkResourceDescription, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.NetworkResourceDescription>, callback?: msRest.ServiceCallback<Models.NetworkResourceDescription>): Promise<Models.MeshNetworkCreateOrUpdateResp...
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
MethodDeclaration
/** * Gets the information about the Network resource with the given name. The information include the * description and other properties of the Network. * @summary Gets the Network resource with the given name. * @param networkResourceName The identity of the network. * @param [options] The optional par...
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
MethodDeclaration
/** * @param networkResourceName The identity of the network. * @param callback The callback */ get(networkResourceName: string, callback: msRest.ServiceCallback<Models.NetworkResourceDescription>): void;
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
MethodDeclaration
/** * @param networkResourceName The identity of the network. * @param options The optional parameters * @param callback The callback */ get(networkResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.NetworkResourceDescription>): void;
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
MethodDeclaration
get(networkResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.NetworkResourceDescription>, callback?: msRest.ServiceCallback<Models.NetworkResourceDescription>): Promise<Models.MeshNetworkGetResponse> { return this.client.sendOperationRequest( { networkResourceN...
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
MethodDeclaration
/** * Deletes the Network resource identified by the name. * @summary Deletes the Network resource. * @param networkResourceName The identity of the network. * @param [options] The optional parameters * @returns Promise<msRest.RestResponse> */ deleteMethod(networkResourceName: string, options?: msRest...
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
MethodDeclaration
/** * @param networkResourceName The identity of the network. * @param callback The callback */ deleteMethod(networkResourceName: string, callback: msRest.ServiceCallback<void>): void;
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
MethodDeclaration
/** * @param networkResourceName The identity of the network. * @param options The optional parameters * @param callback The callback */ deleteMethod(networkResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
MethodDeclaration
deleteMethod(networkResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> { return this.client.sendOperationRequest( { networkResourceName, options }, deleteMethodOperationSp...
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
MethodDeclaration
/** * Gets the information about all network resources in a given resource group. The information * include the description and other properties of the Network. * @summary Lists all the network resources. * @param [options] The optional parameters * @returns Promise<Models.MeshNetworkListResponse> */ ...
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
MethodDeclaration
/** * @param callback The callback */ list(callback: msRest.ServiceCallback<Models.PagedNetworkResourceDescriptionList>): void;
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
MethodDeclaration
/** * @param options The optional parameters * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PagedNetworkResourceDescriptionList>): void;
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
MethodDeclaration
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PagedNetworkResourceDescriptionList>, callback?: msRest.ServiceCallback<Models.PagedNetworkResourceDescriptionList>): Promise<Models.MeshNetworkListResponse> { return this.client.sendOperationRequest( { options }, li...
Martz/azure-sdk-for-js
sdk/servicefabric/servicefabric/src/operations/meshNetwork.ts
TypeScript
ArrowFunction
() => DatetimePickerComponent
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
ArrowFunction
(_: D) => {}
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
ArrowFunction
(input) => input in changes
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
ArrowFunction
() => { this._setInput(this.date); this._calculateTimeOptions(); this._changeDetRef.detectChanges(); }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** @hidden */ ngOnChanges(changes): void { if (changes.date) { this._setTempDateTime(); } if (['displayHours', 'displayMinutes', 'displaySeconds', 'meridian'].some((input) => input in changes)) { this._calculateTimeOptions(); } }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** @hidden */ ngOnInit(): void { if (this.date) { this._setTempDateTime(); } this._calculateTimeOptions(); this._dateTimeAdapter.localeChanges.pipe(takeUntil(this._onDestroy$)).subscribe(() => { this._setInput(this.date); this._calculateTimeOptions(...
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** @hidden */ ngOnDestroy(): void { this._onDestroy$.next(); this._onDestroy$.complete(); }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** * @hidden * Function that implements Validator Interface, adds validation support for forms */ validate( control: AbstractControl ): { [key: string]: any; } { return this.isCurrentModelValid() && !this._isInvalidDateInput ? null : { ...
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** Toggles the popover. */ togglePopover(): void { this.onTouched(); if (this.isOpen) { this.closePopover(); } else { this.openPopover(); } }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** * Method that handle calendar active view change and throws event. */ handleCalendarActiveViewChange(activeView: FdCalendarView): void { this.activeViewChange.emit(activeView); }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** Opens the popover. */ openPopover(): void { if (!this.isOpen && !this.disabled) { this.onTouched(); this.isOpen = true; this.isOpenChange.emit(this.isOpen); } }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** Closes the popover and refresh model */ closePopover(): void { if (this.isOpen) { this.handleInputChange(this._inputFieldDate); this.onClose.emit(); this.isOpen = false; this.isOpenChange.emit(this.isOpen); } }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** @hidden */ setInvalidDateInputHandler(isInvalid: boolean): void { this._isInvalidDateInput = isInvalid; }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** @hidden */ registerOnChange(fn: (selected: any) => { void }): void { this.onChange = fn; }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** @hidden */ setDisabledState(isDisabled: boolean): void { this.disabled = isDisabled; this._changeDetRef.detectChanges(); }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** * @hidden * Function that provides support for ControlValueAccessor that allows to use [(ngModel)] or forms */ writeValue(selected: D): void { if (!this._dateTimeAdapter.isValid(selected)) { this._inputFieldDate = ''; this._changeDetRef.detectChanges(); ret...
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** * @hidden * Method that is triggered by events from calendar component, when there is selected date changed. * If invalid time model is detected, it takes time model data from TimeComponent. */ handleDateChange(date: D): void { this._tempDate = date; if (!this.showFooter) { ...
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** * @hidden * Method that is triggered by events from time component, when there is selected time changed */ handleTimeChange(time: D): void { this._tempTime = time; if (!this.showFooter) { this.submit(); } }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** * @hidden * Method that is triggered when 'OK' button is pressed. */ submit(): void { const currentDate = this._tempDate; const currentTime = this._tempTime; this.date = this._dateTimeAdapter.setTime( currentDate, this._dateTimeAdapter.getHours(current...
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** * @hidden * Function that is called when 'Cancel' button is pressed. */ cancel(): void { this._tempDate = this.date; this._tempTime = this.date; this.closePopover(); }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** @hidden */ focusArrowLeft(): void { if (this._elRef.nativeElement.querySelector('#' + this._calendarComponent.id + '-left-arrow')) { this._elRef.nativeElement.querySelector('#' + this._calendarComponent.id + '-left-arrow').focus(); } }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** * @hidden * Method, which is responsible for transforming string to datetime, depending on type or * validation the results are different. It also changes to state of isInvalidDateInput. */ handleInputChange(inputStr: string): void { const date = this._dateTimeAdapter.parse(inputStr, thi...
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** Method that provides information if model selected date/dates have properly types and are valid */ public isCurrentModelValid(): boolean { return this._isModelValid(this.date); }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** Method that provides information if FdDateTime passed as arg has properly types and is valid */ private _isModelValid(date: D): boolean { return this._dateTimeAdapter.isValid(date); }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
private _setInput(dateTime: D): void { this._inputFieldDate = this._formatDateTime(dateTime); this._changeDetRef.detectChanges(); }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** @hidden */ private _refreshCurrentlyDisplayedCalendarDate(date: D): void { if (this._calendarComponent) { this._calendarComponent.setCurrentlyDisplayed(date); } }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** * @hidden * Format date time entity. */ private _formatDateTime(dateTime: D): string { const formattedDate: string = this._dateTimeAdapter.format( dateTime, this._dateTimeFormats.display.dateTimeInput ); return formattedDate || ''; }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** @hidden */ private _setTempDateTime(): void { this._tempDate = this.date; this._tempTime = this.date; }
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
MethodDeclaration
/** @hidden */ private _calculateTimeOptions(): void { const format = this._dateTimeFormats.display.dateTimeInput; // default meridian option based on format option this._meridian = this.meridian != null ? this.meridian : this._dateTimeAdapter.isTimeFormatIncludesDayPeriod(format); ...
mykolavorobiov/fundamental-ngx
libs/core/src/lib/datetime-picker/datetime-picker.component.ts
TypeScript
ClassDeclaration
@Component({ selector: 'app-navbar', templateUrl: './navbar.component.html', styleUrls: ['./navbar.component.css'] }) export class NavbarComponent implements OnInit { constructor() {} ngOnInit() {} }
h4rdw1r3/kouluni-admin
src/app/components/navbar/navbar.component.ts
TypeScript
ArrowFunction
story => ( <Screener steps={new Screener.Steps() .snapshot('default', { cropTo: '.testWrapper' }) .hover('div.ms-ChoiceField:nth-of-type(1)') .snapshot('hover unselected', { cropTo: '.testWrapper' }) .click('div.ms-ChoiceField:nth-of-type(1)') .snapshot('selected', { c...
LavaAdventures/fluentui
apps/vr-tests/src/stories/ChoiceGroup.stories.tsx
TypeScript
ArrowFunction
() => // prettier-ignore <ChoiceGroup options
LavaAdventures/fluentui
apps/vr-tests/src/stories/ChoiceGroup.stories.tsx
TypeScript
ArrowFunction
() => ( <ChoiceGroup label="Pick one icon"
LavaAdventures/fluentui
apps/vr-tests/src/stories/ChoiceGroup.stories.tsx
TypeScript
ArrowFunction
() => ( <ChoiceGroup label="Pick one image"
LavaAdventures/fluentui
apps/vr-tests/src/stories/ChoiceGroup.stories.tsx
TypeScript
MethodDeclaration
story()
LavaAdventures/fluentui
apps/vr-tests/src/stories/ChoiceGroup.stories.tsx
TypeScript
ClassDeclaration
export default class GoStop extends React.Component<IconBaseProps, any> { }
43081j/DefinitelyTyped
types/react-icons/go/stop.d.ts
TypeScript
FunctionDeclaration
declare function Eris(token: string, options: Eris.ClientOptions): Eris.Client;
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
class Base implements SimpleJSON { createdAt: number; id: string; constructor(id: string); static getCreatedAt(id: string): number; static getDiscordEpoch(id: string): number; inspect(): this; toString(): string; toJSON(props?: string[]): JSONCache; }
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class Bucket { interval: number; lastReset: number; lastSend: number; tokenLimit: number; tokens: number; constructor(tokenLimit: number, interval: number, options: { latencyRef: { latency: number }; reservedTokens: number }); check(): void; queue(func: () => void, priority?: boo...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class BrowserWebSocket extends EventEmitter { static CONNECTING: 0; static OPEN: 1; static CLOSING: 2; static CLOSED: 3; readyState: number; constructor(url: string); close(code?: number, reason?: string): void; removeEventListener(event: string | symbol, listener: (...args: any[...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class BrowserWebSocketError extends Error { // @ts-ignore: DOM event: Event; // @ts-ignore: DOM constructor(message: string, event: Event); }
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class Call extends Base { channel: GroupChannel; createdAt: number; endedTimestamp: number | null; id: string; participants: string[]; region: string | null; ringing: string[]; unavailable: boolean; voiceStates: Collection<VoiceState>; constructor(data: BaseData, channel:...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class CategoryChannel extends GuildChannel { channels: Collection<Exclude<AnyGuildChannel, CategoryChannel>>; type: Constants["ChannelTypes"]["GUILD_CATEGORY"]; edit(options: Omit<CreateChannelOptions, "permissionOverwrites" | "reason">, reason?: string): Promise<this>; }
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class Channel extends Base { client: Client; createdAt: number; id: string; mention: string; type: ChannelTypes; constructor(data: BaseData, client: Client); static from(data: BaseData, client: Client): AnyChannel; }
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class Collection<T extends { id: string | number }> extends Map<string | number, T> { baseObject: new (...args: any[]) => T; limit?: number; constructor(baseObject: new (...args: any[]) => T, limit?: number); add(obj: T, extra?: unknown, replace?: boolean): T; every(func: (i: T) => boolean):...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class Command implements CommandOptions, SimpleJSON { aliases: string[]; argsRequired: boolean; caseInsensitive: boolean; cooldown: number; cooldownExclusions: CommandCooldownExclusions; cooldownMessage: MessageContent | false | GenericCheckFunction<MessageContent>; cooldownReturns: ...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class CommandClient extends Client { activeMessages: { [s: string]: ActiveMessages }; commandAliases: { [s: string]: string }; commandOptions: CommandClientOptions; commands: { [s: string]: Command }; guildPrefixes: { [s: string]: string | string[] }; preReady?: true; constructor(tok...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class DiscordHTTPError extends Error { code: number; name: "DiscordHTTPError"; req: ClientRequest; res: IncomingMessage; response: HTTPResponse; constructor(req: ClientRequest, res: IncomingMessage, response: HTTPResponse, stack: string); flattenErrors(errors: HTTPResponse, keyPrefix...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class DiscordRESTError extends Error { code: number; name: string; req: ClientRequest; res: IncomingMessage; response: HTTPResponse; constructor(req: ClientRequest, res: IncomingMessage, response: HTTPResponse, stack: string); flattenErrors(errors: HTTPResponse, keyPrefix?: string): ...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class ExtendedUser extends User { email: string; mfaEnabled: boolean; premiumType: Constants["PremiumTypes"][keyof Constants["PremiumTypes"]]; verified: boolean; }
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class GroupChannel extends PrivateChannel { icon: string | null; iconURL: string | null; name: string; ownerID: string; recipients: Collection<User>; type: Constants["ChannelTypes"]["GROUP_DM"]; addRecipient(userID: string): Promise<void>; dynamicIconURL(format?: ImageFormat, siz...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class GuildAuditLogEntry extends Base { actionType: number; after: { [key: string]: unknown } | null; before: { [key: string]: unknown } | null; channel?: AnyGuildChannel; count?: number; deleteMemberDays?: number; guild: Guild; id: string; member?: Member | Uncached; mem...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class GuildChannel extends Channel { guild: Guild; name: string; nsfw: boolean; parentID: string | null; permissionOverwrites: Collection<PermissionOverwrite>; position: number; type: GuildChannelTypes; constructor(data: BaseData, client: Client); delete(reason?: string): Pro...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class GuildIntegration extends Base { account: { id: string; name: string }; application?: IntegrationApplication; createdAt: number; enabled: boolean; enableEmoticons?: boolean; expireBehavior?: GuildIntegrationExpireBehavior; expireGracePeriod?: number; id: string; name: st...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class GuildPreview extends Base { approximateMemberCount: number; approximatePresenceCount: number; description: string | null; discoverySplash: string | null; discoverySplashURL: string | null; emojis: Emoji[]; features: GuildFeatures[]; icon: string | null; iconURL: string ...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class GuildTemplate { code: string; createdAt: number; creator: User; description: string | null; isDirty: string | null; name: string; serializedSourceGuild: Guild; sourceGuild: Guild | Uncached; updatedAt: number; usageCount: number; constructor(data: BaseData, clie...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
//Interaction export class Interaction extends Base { acknowledged: boolean; applicationID: string; id: string; token: string; type: number; version: number; }
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class PingInteraction extends Interaction { type: Constants["InteractionTypes"]["PING"]; acknowledge(): Promise<void>; pong(): Promise<void>; }
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class CommandInteraction<T extends PossiblyUncachedTextable = TextableChannel> extends Interaction { channel: T; data: { id: string; name: string; type: Constants["ApplicationCommandTypes"][keyof Constants["ApplicationCommandTypes"]]; target_id?: string; resolved?: { ...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class ComponentInteraction<T extends PossiblyUncachedTextable = TextableChannel> extends Interaction { channel: T; data: ComponentInteractionButtonData | ComponentInteractionSelectMenuData; guildID?: string; member?: Member; message: Message; type: Constants["InteractionTypes"]["MESSAGE_...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class AutocompleteInteraction<T extends PossiblyUncachedTextable = TextableChannel> extends Interaction { channel: T; data: { id: string; name: string; type: Constants["ApplicationCommandTypes"][keyof Constants["ApplicationCommandTypes"]]; target_id?: string; options?: Inte...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class UnknownInteraction<T extends PossiblyUncachedTextable = TextableChannel> extends Interaction { channel?: T; data?: unknown; guildID?: string; member?: Member; message?: Message; type: number; user?: User; acknowledge(data: InteractionOptions): Promise<void>; createFollo...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
// If CT (count) is "withMetadata", it will not have count properties export class Invite<CT extends "withMetadata" | "withCount" | "withoutCount" = "withMetadata", CH extends InviteChannel = InviteChannel> extends Base { channel: CH; code: string; // @ts-ignore: Property is only not null when invite metada...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class Member extends Base implements Presence { accentColor?: number | null; activities?: Activity[]; avatar: string | null; avatarURL: string; banner?: string | null; bannerURL: string | null; bot: boolean; clientStatus?: ClientStatus; createdAt: number; defaultAvatar: s...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class Message<T extends PossiblyUncachedTextable = TextableChannel> extends Base { activity?: MessageActivity; application?: MessageApplication; applicationID?: string; attachments: Attachment[]; author: User; channel: T; channelMentions: string[]; /** @deprecated */ cleanCon...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
// News channel rate limit is always 0 export class NewsChannel extends TextChannel { rateLimitPerUser: 0; type: Constants["ChannelTypes"]["GUILD_NEWS"]; createInvite(options?: CreateInviteOptions, reason?: string): Promise<Invite<"withMetadata", NewsChannel>>; createMessage(content: MessageContent, fil...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class NewsThreadChannel extends ThreadChannel { type: Constants["ChannelTypes"]["GUILD_NEWS_THREAD"]; createMessage(content: MessageContent, file?: FileContent | FileContent[]): Promise<Message<NewsThreadChannel>>; edit(options: Pick<EditChannelOptions, "archived" | "autoArchiveDuration" | "locked" ...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class Permission extends Base { allow: bigint; deny: bigint; json: Record<keyof Constants["Permissions"], boolean>; constructor(allow: number | string | bigint, deny?: number | string | bigint); has(permission: keyof Constants["Permissions"]): boolean; }
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class PermissionOverwrite extends Permission { id: string; type: PermissionType; constructor(data: Overwrite); }
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class Piper extends EventEmitter { converterCommand: ConverterCommand; dataPacketCount: number; encoding: boolean; libopus: boolean; opus: OpusScript | null; opusFactory: () => OpusScript; volumeLevel: number; constructor(converterCommand: string, opusFactory: OpusScript); ad...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class PrivateChannel extends Channel implements Textable { lastMessageID: string; messages: Collection<Message<this>>; recipient: User; type: PrivateChannelTypes; addMessageReaction(messageID: string, reaction: string): Promise<void>; /** @deprecated */ addMessageReaction(messageID: ...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class PrivateThreadChannel extends ThreadChannel { threadMetadata: PrivateThreadMetadata; type: Constants["ChannelTypes"]["GUILD_PRIVATE_THREAD"]; createMessage(content: MessageContent, file?: FileContent | FileContent[]): Promise<Message<PrivateThreadChannel>>; edit(options: Pick<EditChannelOpt...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class PublicThreadChannel extends ThreadChannel { type: GuildPublicThreadChannelTypes; createMessage(content: MessageContent, file?: FileContent | FileContent[]): Promise<Message<PublicThreadChannel>>; edit(options: Pick<EditChannelOptions, "archived" | "autoArchiveDuration" | "locked" | "name" | "r...
oceaann/eris
index.d.ts
TypeScript
ClassDeclaration
export class Relationship extends Base implements Omit<Presence, "activities"> { activities: Activity[] | null; clientStatus?: ClientStatus; id: string; status: Status; type: number; user: User; constructor(data: BaseData, client: Client); }
oceaann/eris
index.d.ts
TypeScript