type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
() => { this.setState({ showModal: true }); }
schnatterer/scm-manager
scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingAction.tsx
TypeScript
ArrowFunction
() => { this.setState({ showModal: false }); }
schnatterer/scm-manager
scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingAction.tsx
TypeScript
ArrowFunction
() => { const { showModal } = this.state; const { pendingPlugins } = this.props; if (showModal) { return <ExecutePendingModal pendingPlugins={pendingPlugins} onClose={this.closeModal} />; } return null; }
schnatterer/scm-manager
scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingAction.tsx
TypeScript
ClassDeclaration
class ExecutePendingAction extends React.Component<Props, State> { constructor(props: Props) { super(props); this.state = { showModal: false }; } openModal = () => { this.setState({ showModal: true }); }; closeModal = () => { this.setState({ showModal: false })...
schnatterer/scm-manager
scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingAction.tsx
TypeScript
TypeAliasDeclaration
type Props = WithTranslation & { pendingPlugins: PendingPlugins; };
schnatterer/scm-manager
scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingAction.tsx
TypeScript
TypeAliasDeclaration
type State = { showModal: boolean; };
schnatterer/scm-manager
scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingAction.tsx
TypeScript
MethodDeclaration
render() { const { t } = this.props; return ( <> {this.renderModal()} <Button color="primary" label={t("plugins.executePending")} action={this.openModal} /> </> ); }
schnatterer/scm-manager
scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingAction.tsx
TypeScript
MethodDeclaration
t("plugins.executePending")
schnatterer/scm-manager
scm-ui/ui-webapp/src/admin/plugins/components/ExecutePendingAction.tsx
TypeScript
ArrowFunction
user => user !== null
aleksanderbies/Singles-Planet-Dating-Web-App
src/app/guards/chat.guard.ts
TypeScript
ArrowFunction
value => { if(!value){ this.router.navigateByUrl('/login').then(); return value; } else{ return value; } }
aleksanderbies/Singles-Planet-Dating-Web-App
src/app/guards/chat.guard.ts
TypeScript
ClassDeclaration
@Injectable({ providedIn: 'root' }) export class ChatGuard implements CanActivate { constructor(private afAuth : AngularFireAuth, private router: Router){ } canActivate( route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean ...
aleksanderbies/Singles-Planet-Dating-Web-App
src/app/guards/chat.guard.ts
TypeScript
MethodDeclaration
canActivate( route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree { return this.afAuth.authState.pipe( map(user => user !== null), tap(value => { if(!value){ this.router.navigateBy...
aleksanderbies/Singles-Planet-Dating-Web-App
src/app/guards/chat.guard.ts
TypeScript
ClassDeclaration
export class TableArrayProvider<T extends Record<string, unknown>> extends TableDataProvider<T> { rawData: Array<T>; constructor({ data, ...options }: TableProviderOptions & { data: Array<T> }) { super(options); this.rawData = data; this.data.set(this.rawData.slice(0, this.options.itemsPerPage)); } ...
ISIR-MAP/marcelle
src/ui/components/table-array-provider.ts
TypeScript
MethodDeclaration
// eslint-disable-next-line @typescript-eslint/no-empty-function async update(): Promise<void> {}
ISIR-MAP/marcelle
src/ui/components/table-array-provider.ts
TypeScript
MethodDeclaration
async page(i: number): Promise<void> { this.data.set( this.rawData.slice( (i - 1) * this.options.itemsPerPage, Math.min(i * this.options.itemsPerPage, this.rawData.length), ), ); }
ISIR-MAP/marcelle
src/ui/components/table-array-provider.ts
TypeScript
MethodDeclaration
async sort(sorting: { col: string; ascending: boolean }): Promise<void> { console.log('[provider] sort with', sorting); }
ISIR-MAP/marcelle
src/ui/components/table-array-provider.ts
TypeScript
MethodDeclaration
async delete(i: number): Promise<T> { console.log('[provider] delete item', i); return null; }
ISIR-MAP/marcelle
src/ui/components/table-array-provider.ts
TypeScript
ArrowFunction
() => ({ api1Data: [APIData[0]] })
SavoirBot/hydro-gen
examples/parallel-fetching/index.ts
TypeScript
ArrowFunction
() => ({ api2Data: [APIData[1]] })
SavoirBot/hydro-gen
examples/parallel-fetching/index.ts
TypeScript
ArrowFunction
data => [...data.api1Data, ...data.api2Data].map(data => data.configuration.path)
SavoirBot/hydro-gen
examples/parallel-fetching/index.ts
TypeScript
ArrowFunction
data => data.configuration.path
SavoirBot/hydro-gen
examples/parallel-fetching/index.ts
TypeScript
ArrowFunction
async (path, data) => { const page = [...data.api1Data, ...data.api2Data].find(el => el.configuration.path === path); if (!page) { return null; } return { url: path, content: `${page.title}\n\n${page.content}`, }; }
SavoirBot/hydro-gen
examples/parallel-fetching/index.ts
TypeScript
ArrowFunction
el => el.configuration.path === path
SavoirBot/hydro-gen
examples/parallel-fetching/index.ts
TypeScript
InterfaceDeclaration
interface PipelineData { api1Data: typeof APIData[0][]; api2Data: typeof APIData[1][]; }
SavoirBot/hydro-gen
examples/parallel-fetching/index.ts
TypeScript
InterfaceDeclaration
export interface ValidationResult { errors: string[]; valid: boolean; }
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
InterfaceDeclaration
export interface FieldMeta<TValue> { touched: boolean; dirty: boolean; valid: boolean; validated: boolean; pending: boolean; initialValue?: TValue; }
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
InterfaceDeclaration
export interface FieldState<TValue = unknown> { value: TValue; touched: boolean; errors: string[]; }
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
InterfaceDeclaration
export interface PrivateFieldComposite<TValue = unknown> { fid: number; idx: number; name: MaybeRef<string>; value: WritableRef<TValue>; meta: FieldMeta<TValue>; errors: Ref<string[]>; errorMessage: ComputedRef<string | undefined>; label?: MaybeRef<string | undefined>; type?: string; checkedValue?:...
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
InterfaceDeclaration
export interface FormState<TValues> { values: TValues; errors: Partial<Record<keyof TValues, string | undefined>>; touched: Partial<Record<keyof TValues, boolean>>; submitCount: number; }
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
InterfaceDeclaration
export interface SetFieldValueOptions { force: boolean; }
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
InterfaceDeclaration
export interface FormActions<TValues extends Record<string, unknown>> { setFieldValue<T extends keyof TValues>(field: T, value: TValues[T], opts?: Partial<SetFieldValueOptions>): void; setFieldError: (field: keyof TValues, message: string | string[] | undefined) => void; setErrors: (fields: FormErrors<TValues>) ...
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
InterfaceDeclaration
export interface FormValidationResult<TValues> { valid: boolean; results: Partial<Record<keyof TValues, ValidationResult>>; }
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
InterfaceDeclaration
export interface SubmissionContext<TValues extends Record<string, unknown> = Record<string, unknown>> extends FormActions<TValues> { evt?: Event; }
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
InterfaceDeclaration
export interface FormContext<TValues extends Record<string, any> = Record<string, any>> extends FormActions<TValues> { register(field: PrivateFieldComposite): void; unregister(field: PrivateFieldComposite): void; values: TValues; fieldsById: ComputedRef<Record<keyof TValues, PrivateFieldComposite | PrivateFiel...
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
InterfaceDeclaration
export interface PublicFormContext<TValues extends Record<string, any> = Record<string, any>> extends Omit< FormContext<TValues>, | 'register' | 'unregister' | 'fieldsById' | 'schema' | 'validateSchema' | 'errorBag' | 'setFieldErrorBag' | 'stageInitialValue' | 'setFieldInitial...
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
TypeAliasDeclaration
export type YupValidator = AnySchema | AnyObjectSchema;
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
TypeAliasDeclaration
export type Locator = { __locatorRef: string } & ((values: Record<string, unknown>) => unknown);
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
TypeAliasDeclaration
// Extracts explicit keys of an interface without index signature // https://stackoverflow.com/questions/51465182/typescript-remove-index-signature-using-mapped-types export type KnownKeys<T> = { [K in keyof T]: string extends K ? never : number extends K ? never : K; } extends { [_ in keyof T]: infer U } ? U : n...
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
TypeAliasDeclaration
export type MaybeRef<T> = Ref<T> | ComputedRef<T> | T;
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
TypeAliasDeclaration
export type WritableRef<TValue> = Ref<TValue> | WritableComputedRef<TValue>;
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
TypeAliasDeclaration
export type FieldComposable<TValue = unknown> = Omit<PrivateFieldComposite<TValue>, 'idx' | 'fid'>;
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
TypeAliasDeclaration
export type GenericValidateFunction = ( value: unknown, ctx: FieldContext ) => boolean | string | Promise<boolean | string>;
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
TypeAliasDeclaration
export type FormErrors<TValues extends Record<string, unknown>> = Partial<Record<keyof TValues, string | undefined>>;
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
TypeAliasDeclaration
export type FormErrorBag<TValues extends Record<string, unknown>> = Partial<Record<keyof TValues, string[]>>;
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
TypeAliasDeclaration
export type SubmissionHandler<TValues extends Record<string, unknown> = Record<string, unknown>> = ( values: TValues, ctx: SubmissionContext<TValues> ) => unknown;
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
TypeAliasDeclaration
export type RawFormSchema<TValues> = Record<keyof TValues, string | GenericValidateFunction | Record<string, any>>;
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
TypeAliasDeclaration
/** * validated-only: only mutate the previously validated fields * silent: do not mutate any field * force: validate all fields and mutate their state */ export type SchemaValidationMode = 'validated-only' | 'silent' | 'force';
Andrevwv/vee-validate
packages/vee-validate/src/types.ts
TypeScript
ArrowFunction
({ size = 15, width = 21, height = 15, ...props }: Props) => { if (size !== height) { width = width * (size / height); height = height * (size / height); } return ( <Svg width={width} height={height} viewBox="0 0 21 15" {...props}> <Defs> <LinearGradient id="prefix__a" x1="50%"...
ecklf/flagkit
src/react-native/flags/FlagIconMW.tsx
TypeScript
InterfaceDeclaration
interface Props extends SvgProps { size?: number; width?: number; height?: number; }
ecklf/flagkit
src/react-native/flags/FlagIconMW.tsx
TypeScript
ArrowFunction
(e) => { e.preventDefault(); $("#btnPricingIndividual").addClass("btn-primary").removeClass("btn-notSelected"); $("#btnPricingOrgs").removeClass("btn-primary").addClass("btn-notSelected"); $("#pricingIndividuals").show(0); $("#pricingOrgs"...
memucho/webapp
src/TrueOrFalse.Frontend.Web/Views/Help/Js/WidgetPricing.ts
TypeScript
ArrowFunction
(e) => { e.preventDefault(); $("#btnPricingOrgs").addClass("btn-primary").removeClass("btn-notSelected"); $("#btnPricingIndividual").removeClass("btn-primary").addClass("btn-notSelected"); $("#pricingIndividuals").hide(0); $("#pricingOrgs"...
memucho/webapp
src/TrueOrFalse.Frontend.Web/Views/Help/Js/WidgetPricing.ts
TypeScript
ClassDeclaration
class WidgetPricing { constructor() { var self = this; $("#btnPricingIndividual") .click((e) => { e.preventDefault(); $("#btnPricingIndividual").addClass("btn-primary").removeClass("btn-notSelected"); $("#btnPricingOrgs").removeClass("bt...
memucho/webapp
src/TrueOrFalse.Frontend.Web/Views/Help/Js/WidgetPricing.ts
TypeScript
FunctionDeclaration
export function MatchShowcasePage(){ }
feelja-tech/feelja-frontend
pages/signup/match_showcase.tsx
TypeScript
ArrowFunction
questionSets => { this.questionSets = questionSets; if (questionSets) { this.currentQuestionSet = this.getCurrentQuestionSet(); } }
WakeUpCallApp/wakeup
src/app/pages/quote-details/components/app-questions-browser/app-questions-browser.component.ts
TypeScript
ArrowFunction
q => q.id
WakeUpCallApp/wakeup
src/app/pages/quote-details/components/app-questions-browser/app-questions-browser.component.ts
TypeScript
ArrowFunction
q => q.id !== question.id
WakeUpCallApp/wakeup
src/app/pages/quote-details/components/app-questions-browser/app-questions-browser.component.ts
TypeScript
ArrowFunction
q => q.id === question.id
WakeUpCallApp/wakeup
src/app/pages/quote-details/components/app-questions-browser/app-questions-browser.component.ts
TypeScript
ArrowFunction
question => question.id
WakeUpCallApp/wakeup
src/app/pages/quote-details/components/app-questions-browser/app-questions-browser.component.ts
TypeScript
ArrowFunction
qs => qs.questions.find(q => selectedIds.indexOf(q.id) !== -1) !== undefined
WakeUpCallApp/wakeup
src/app/pages/quote-details/components/app-questions-browser/app-questions-browser.component.ts
TypeScript
ArrowFunction
q => selectedIds.indexOf(q.id) !== -1
WakeUpCallApp/wakeup
src/app/pages/quote-details/components/app-questions-browser/app-questions-browser.component.ts
TypeScript
ClassDeclaration
@Component({ selector: 'app-questions-browser', templateUrl: './app-questions-browser.component.html', styleUrls: ['./app-questions-browser.component.scss'] }) export class AppQuestionsBrowserComponent implements OnInit, OnDestroy { allQuestionsSubscription: Subscription; questionSets; currentQuestionSet; ...
WakeUpCallApp/wakeup
src/app/pages/quote-details/components/app-questions-browser/app-questions-browser.component.ts
TypeScript
MethodDeclaration
ngOnInit() { this.initialSelection = this.data.selectedQuestions; this.selectedQuestions = this.data.selectedQuestions; this.questionStoreService.getAll(); this.allQuestionsSubscription = this.questionStoreService.questions$ .subscribe(questionSets => { this.questionSets = questionSets; ...
WakeUpCallApp/wakeup
src/app/pages/quote-details/components/app-questions-browser/app-questions-browser.component.ts
TypeScript
MethodDeclaration
ngOnDestroy() { this.allQuestionsSubscription.unsubscribe(); }
WakeUpCallApp/wakeup
src/app/pages/quote-details/components/app-questions-browser/app-questions-browser.component.ts
TypeScript
MethodDeclaration
safeClose() { const noDifference = isEqual( this.selectedQuestions.map(q => q.id), this.initialSelection.map(q => q.id) ); this.dialogRef.close(noDifference ? undefined : this.selectedQuestions); }
WakeUpCallApp/wakeup
src/app/pages/quote-details/components/app-questions-browser/app-questions-browser.component.ts
TypeScript
MethodDeclaration
toggleSelectedQuestion(question) { if (this.isSelectedQuestion(question)) { this.selectedQuestions = this.selectedQuestions.filter( q => q.id !== question.id ); } else { this.selectedQuestions = [...this.selectedQuestions, question]; } }
WakeUpCallApp/wakeup
src/app/pages/quote-details/components/app-questions-browser/app-questions-browser.component.ts
TypeScript
MethodDeclaration
isSelectedQuestion(question) { return this.selectedQuestions.find(q => q.id === question.id); }
WakeUpCallApp/wakeup
src/app/pages/quote-details/components/app-questions-browser/app-questions-browser.component.ts
TypeScript
MethodDeclaration
getCurrentQuestionSet() { const selectedIds = this.selectedQuestions.map(question => question.id); const questionSet = this.questionSets.find( qs => qs.questions.find(q => selectedIds.indexOf(q.id) !== -1) !== undefined ); return questionSet ? questionSet : this.questionSets.l...
WakeUpCallApp/wakeup
src/app/pages/quote-details/components/app-questions-browser/app-questions-browser.component.ts
TypeScript
ArrowFunction
({ tablename }) => tablename
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
ArrowFunction
(rawTable: RawTable): Table => { return { name: rawTable.table_name, schema: rawTable.table_schema, comment: rawTable.table_comment, }; }
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
ArrowFunction
({ table_name, column_name }) => ({ table: table_name, column: column_name, })
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
ArrowFunction
(rawColumn): Column => { return { name: rawColumn.column_name, table: rawColumn.table_name, type: rawColumn.data_type, default_value: rawColumn.column_default ? this.parseDefaultValue(rawColumn.column_default) : null, max_length: rawColu...
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
TypeAliasDeclaration
type RawTable = { table_name: string; table_schema: 'public' | string; table_comment: string | null; };
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
TypeAliasDeclaration
type RawColumn = { column_name: string; table_name: string; table_schema: string; data_type: string; column_default: any | null; character_maximum_length: number | null; is_nullable: 'YES' | 'NO'; is_primary: null | 'YES'; numeric_precision: null | number; numeric_scale: null | number; serial: nu...
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
MethodDeclaration
// Postgres specific // =============================================================================================== /** * Set the schema to be used in other methods */ withSchema(schema: string) { this.schema = schema; this.explodedSchema = [this.schema]; return this; }
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
MethodDeclaration
/** * Converts Postgres default value to JS * Eg `'example'::character varying` => `example` */ parseDefaultValue(type: string) { if (type.startsWith('nextval(')) return null; // auto-increment const parts = type.split('::'); let value = parts[0]; if (value.startsWith("'") && value.endsWith(...
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
MethodDeclaration
// Tables // =============================================================================================== /** * List all existing tables in the current schema/database */ async tables() { const records = await this.knex .select<{ tablename: string }[]>('tablename') .from('pg_catalog.pg_tables')...
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
MethodDeclaration
/** * Get the table info for a given table. If table parameter is undefined, it will return all tables * in the current schema/database */ tableInfo(): Promise<Table[]>;
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
MethodDeclaration
tableInfo(table: string): Promise<Table>;
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
MethodDeclaration
async tableInfo(table?: string) { const query = this.knex .select( 'table_name', 'table_schema', this.knex .select(this.knex.raw('obj_description(oid)')) .from('pg_class') .where({ relkind: 'r' }) .andWhere({ relname: 'table_name ' }) ...
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
MethodDeclaration
/** * Check if a table exists in the current schema/database */ async hasTable(table: string) { const subquery = this.knex .select() .from('information_schema.tables') .whereIn('table_schema', this.explodedSchema) .andWhere({ table_name: table }); const record = await this.knex ...
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
MethodDeclaration
// Columns // =============================================================================================== /** * Get all the available columns in the current schema/database. Can be filtered to a specific table */ async columns(table?: string) { const query = this.knex .select<{ table_name: string; c...
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
MethodDeclaration
/** * Get the column info for all columns, columns in a given table, or a specific column. */ columnInfo(): Promise<Column[]>;
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
MethodDeclaration
columnInfo(table: string): Promise<Column[]>;
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
MethodDeclaration
columnInfo(table: string, column: string): Promise<Column>;
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
MethodDeclaration
async columnInfo<T>(table?: string, column?: string) { const { knex } = this; const query = knex .select( 'c.column_name', 'c.table_name', 'c.data_type', 'c.column_default', 'c.character_maximum_length', 'c.is_nullable', 'c.numeric_precision', ...
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
MethodDeclaration
/** * Check if the given table contains the given column */ async hasColumn(table: string, column: string) { const subquery = this.knex .select() .from('information_schema.columns') .whereIn('table_schema', this.explodedSchema) .andWhere({ table_name: table, column_name...
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
MethodDeclaration
/** * Get the primary key column for the given table */ async primary(table: string): Promise<string> { const result = await this.knex .select('information_schema.key_column_usage.column_name') .from('information_schema.key_column_usage') .leftJoin( 'information_schema.table_constrai...
Idered/knex-schema-inspector
lib/dialects/postgres.ts
TypeScript
ClassDeclaration
/** * User Agent Core. * @remarks * Core designates the functions specific to a particular type * of SIP entity, i.e., specific to either a stateful or stateless * proxy, a user agent or registrar. All cores, except those for * the stateless proxy, are transaction users. * https://tools.ietf.org/html/rfc3261#se...
samadlol/SIP.js
lib/core/user-agent-core/user-agent-core.d.ts
TypeScript
MethodDeclaration
/** Destructor. */ dispose(): void;
samadlol/SIP.js
lib/core/user-agent-core/user-agent-core.d.ts
TypeScript
MethodDeclaration
/** Reset. */ reset(): void;
samadlol/SIP.js
lib/core/user-agent-core/user-agent-core.d.ts
TypeScript
MethodDeclaration
/** * Send INVITE. * @param request - Outgoing request. * @param delegate - Request delegate. */ invite(request: OutgoingRequestMessage, delegate?: OutgoingInviteRequestDelegate): OutgoingInviteRequest;
samadlol/SIP.js
lib/core/user-agent-core/user-agent-core.d.ts
TypeScript
MethodDeclaration
/** * Send MESSAGE. * @param request - Outgoing request. * @param delegate - Request delegate. */ message(request: OutgoingRequestMessage, delegate?: OutgoingRequestDelegate): OutgoingMessageRequest;
samadlol/SIP.js
lib/core/user-agent-core/user-agent-core.d.ts
TypeScript
MethodDeclaration
/** * Send PUBLISH. * @param request - Outgoing request. * @param delegate - Request delegate. */ publish(request: OutgoingRequestMessage, delegate?: OutgoingRequestDelegate): OutgoingPublishRequest;
samadlol/SIP.js
lib/core/user-agent-core/user-agent-core.d.ts
TypeScript
MethodDeclaration
/** * Send REGISTER. * @param request - Outgoing request. * @param delegate - Request delegate. */ register(request: OutgoingRequestMessage, delegate?: OutgoingRequestDelegate): OutgoingRegisterRequest;
samadlol/SIP.js
lib/core/user-agent-core/user-agent-core.d.ts
TypeScript
MethodDeclaration
/** * Send SUBSCRIBE. * @param request - Outgoing request. * @param delegate - Request delegate. */ subscribe(request: OutgoingRequestMessage, delegate?: OutgoingSubscribeRequestDelegate): OutgoingSubscribeRequest;
samadlol/SIP.js
lib/core/user-agent-core/user-agent-core.d.ts
TypeScript
MethodDeclaration
/** * Send a request. * @param request - Outgoing request. * @param delegate - Request delegate. */ request(request: OutgoingRequestMessage, delegate?: OutgoingRequestDelegate): OutgoingRequest;
samadlol/SIP.js
lib/core/user-agent-core/user-agent-core.d.ts
TypeScript
MethodDeclaration
/** * Outgoing request message factory function. * @param method - Method. * @param requestURI - Request-URI. * @param fromURI - From URI. * @param toURI - To URI. * @param options - Request options. * @param extraHeaders - Extra headers to add. * @param body - Message body. ...
samadlol/SIP.js
lib/core/user-agent-core/user-agent-core.d.ts
TypeScript
MethodDeclaration
/** * Handle an incoming request message from the transport. * @param message - Incoming request message from transport layer. */ receiveIncomingRequestFromTransport(message: IncomingRequestMessage): void;
samadlol/SIP.js
lib/core/user-agent-core/user-agent-core.d.ts
TypeScript
MethodDeclaration
/** * Handle an incoming response message from the transport. * @param message - Incoming response message from transport layer. */ receiveIncomingResponseFromTransport(message: IncomingResponseMessage): void;
samadlol/SIP.js
lib/core/user-agent-core/user-agent-core.d.ts
TypeScript
MethodDeclaration
/** * A stateless UAS is a UAS that does not maintain transaction state. * It replies to requests normally, but discards any state that would * ordinarily be retained by a UAS after a response has been sent. If a * stateless UAS receives a retransmission of a request, it regenerates * the resp...
samadlol/SIP.js
lib/core/user-agent-core/user-agent-core.d.ts
TypeScript