@feathersjs/multiple

correctly type behavior of combined commonJS and ES module default exports `module.exports.default = module.exports`
This commit is contained in:
Jan Lohage 2018-03-20 13:05:44 +01:00
parent eedbe4b774
commit 39f4c4ccee
8 changed files with 24 additions and 8 deletions

View File

@ -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;

View File

@ -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 {
/**

View File

@ -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 {
/**

View File

@ -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 {
/**

View File

@ -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 {
/**

View File

@ -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;

View File

@ -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;

View File

@ -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;