mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
@feathersjs/multiple
correctly type behavior of combined commonJS and ES module default exports `module.exports.default = module.exports`
This commit is contained in:
parent
eedbe4b774
commit
39f4c4ccee
@ -3,8 +3,10 @@
|
||||
// Definitions by: Abraao Alves <https://github.com/AbraaoAlves>, Jan Lohage <https://github.com/j2L4e>
|
||||
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
|
||||
// TypeScript Version: 2.3
|
||||
import * as self from '@feathersjs/authentication-client';
|
||||
|
||||
export default function feathersAuthClient(config?: FeathersAuthClientConfig): () => void;
|
||||
declare const feathersAuthClient: ((config?: FeathersAuthClientConfig) => () => void) & typeof self;
|
||||
export default feathersAuthClient;
|
||||
|
||||
export interface FeathersAuthClientConfig {
|
||||
storage?: Storage;
|
||||
|
||||
@ -6,8 +6,10 @@
|
||||
|
||||
import { Application } from '@feathersjs/feathers';
|
||||
import { Request } from 'express';
|
||||
import * as self from '@feathersjs/authentication-jwt';
|
||||
|
||||
export default function feathersAuthenticationJwt(options?: FeathersAuthenticationJWTOptions): () => void;
|
||||
declare const feathersAuthenticationJwt: ((options?: FeathersAuthenticationJWTOptions) => () => void) & typeof self;
|
||||
export default feathersAuthenticationJwt;
|
||||
|
||||
export interface FeathersAuthenticationJWTOptions {
|
||||
/**
|
||||
|
||||
@ -10,8 +10,10 @@ import {
|
||||
Paginated
|
||||
} from '@feathersjs/feathers';
|
||||
import { Request } from 'express';
|
||||
import * as self from '@feathersjs/authentication-local';
|
||||
|
||||
export default function feathersAuthenticationLocal(options?: FeathersAuthenticationLocalOptions): () => void;
|
||||
declare const feathersAuthenticationLocal: ((options?: FeathersAuthenticationLocalOptions) => () => void) & typeof self;
|
||||
export default feathersAuthenticationLocal;
|
||||
|
||||
export interface FeathersAuthenticationLocalOptions {
|
||||
/**
|
||||
|
||||
@ -9,8 +9,10 @@ import {
|
||||
Paginated
|
||||
} from '@feathersjs/feathers';
|
||||
import { Request } from 'express';
|
||||
import * as self from '@feathersjs/authentication-oauth1';
|
||||
|
||||
export default function feathersAuthenticationOAuth1(options?: FeathersAuthenticationOAuth1Options): () => void;
|
||||
declare const feathersAuthenticationOAuth1: ((options?: FeathersAuthenticationOAuth1Options) => () => void) & typeof self;
|
||||
export default feathersAuthenticationOAuth1;
|
||||
|
||||
export interface FeathersAuthenticationOAuth1Options {
|
||||
/**
|
||||
|
||||
@ -9,8 +9,10 @@ import {
|
||||
Paginated
|
||||
} from '@feathersjs/feathers';
|
||||
import { Request } from 'express';
|
||||
import * as self from '@feathersjs/authentication-oauth2';
|
||||
|
||||
export default function feathersAuthenticationOAuth2(options?: FeathersAuthenticationOAuth2Options): () => void;
|
||||
declare const feathersAuthenticationOAuth2: ((options?: FeathersAuthenticationOAuth2Options) => () => void) & typeof self;
|
||||
export default feathersAuthenticationOAuth2;
|
||||
|
||||
export interface FeathersAuthenticationOAuth2Options {
|
||||
/**
|
||||
|
||||
4
types/feathersjs__authentication/index.d.ts
vendored
4
types/feathersjs__authentication/index.d.ts
vendored
@ -4,8 +4,10 @@
|
||||
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
|
||||
|
||||
import { Hook } from '@feathersjs/feathers';
|
||||
import * as self from '@feathersjs/authentication';
|
||||
|
||||
export default function feathersAuthentication(config?: FeathersAuthenticationOptions): () => void;
|
||||
declare const feathersAuthentication: ((config?: FeathersAuthenticationOptions) => () => void) & typeof self;
|
||||
export default feathersAuthentication;
|
||||
|
||||
export const hooks: AuthHooks.Hooks;
|
||||
|
||||
|
||||
4
types/feathersjs__express/index.d.ts
vendored
4
types/feathersjs__express/index.d.ts
vendored
@ -6,8 +6,10 @@
|
||||
|
||||
import { Application as FeathersApplication } from '@feathersjs/feathers';
|
||||
import * as express from 'express';
|
||||
import * as self from '@feathersjs/express';
|
||||
|
||||
export default function feathersExpress<T>(app: FeathersApplication<T>): Application<T>;
|
||||
declare const feathersExpress: (<T>(app: FeathersApplication<T>) => Application<T>) & typeof self;
|
||||
export default feathersExpress;
|
||||
export type Application<T> = express.Application & FeathersApplication<T>;
|
||||
|
||||
export function errorHandler(options?: any): express.ErrorRequestHandler;
|
||||
|
||||
4
types/feathersjs__feathers/index.d.ts
vendored
4
types/feathersjs__feathers/index.d.ts
vendored
@ -8,8 +8,10 @@
|
||||
/// <reference types="node" />
|
||||
|
||||
import { EventEmitter } from 'events';
|
||||
import * as self from '@feathersjs/feathers';
|
||||
|
||||
export default function feathers(): Application<object>;
|
||||
declare const feathers: (() => Application<object>) & typeof self;
|
||||
export default feathers;
|
||||
|
||||
export const version: string;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user