Fix feathersjs dependers (#24091)

This commit is contained in:
Andy
2018-03-05 16:19:20 -08:00
committed by Mohamed Hegazy
parent b0a6ea017e
commit 311bfefd68
9 changed files with 13 additions and 9 deletions

View File

@@ -2,6 +2,7 @@
// Project: http://feathersjs.com/
// 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
export default function feathersAuthClient(config?: FeathersAuthClientConfig): () => void;

View File

@@ -2,7 +2,7 @@
// Project: http://feathersjs.com/
// Definitions by: Jan Lohage <https://github.com/j2L4e>
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
// TypeScript Version: 2.2
// TypeScript Version: 2.3
import { Application } from '@feathersjs/feathers';
import { Request } from 'express';
@@ -45,7 +45,7 @@ export interface FeathersAuthenticationJWTOptions {
}
export class JWTVerifier {
constructor(app: Application<any>, options: any); // the class constructor
constructor(app: Application, options: any); // the class constructor
verify(req: Request, payload: any, done: (error: any, user?: any, info?: any) => void): void;
}

View File

@@ -2,7 +2,7 @@
// Project: http://feathersjs.com/
// Definitions by: Jan Lohage <https://github.com/j2L4e>
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
// TypeScript Version: 2.2
// TypeScript Version: 2.3
import {
Application,
@@ -57,7 +57,7 @@ export interface FeathersAuthenticationLocalOptions {
}
export class LocalVerifier {
constructor(app: Application<any>, options: any);
constructor(app: Application, options: any);
_comparePassword<T>(entity: T, password: string): Promise<T>; // compares password using bcrypt
_normalizeResult<T>(results: T[] | Paginated<T>): Promise<T>; // normalizes result from service to account for pagination

View File

@@ -2,7 +2,7 @@
// Project: http://feathersjs.com/
// Definitions by: Jan Lohage <https://github.com/j2L4e>
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
// TypeScript Version: 2.2
// TypeScript Version: 2.3
import {
Application,
@@ -60,7 +60,7 @@ export interface FeathersAuthenticationOAuth1Options {
}
export class OAuth1Verifier {
constructor(app: Application<any>, options: any);
constructor(app: Application, options: any);
_updateEntity(entity: any, data: { profile: any, accessToken: string, refreshToken: string }): Promise<any>; // updates an existing entity
_createEntity(data: { profile: any, accessToken: string, refreshToken: string }): Promise<any>; // creates an entity if they didn't exist already

View File

@@ -2,7 +2,7 @@
// Project: http://feathersjs.com/
// Definitions by: Jan Lohage <https://github.com/j2L4e>
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
// TypeScript Version: 2.2
// TypeScript Version: 2.3
import {
Application,
@@ -62,7 +62,7 @@ export interface FeathersAuthenticationOAuth2Options {
}
export class OAuth2Verifier {
constructor(app: Application<any>, options: any)
constructor(app: Application, options: any)
_updateEntity(entity: any, data: { profile: any, accessToken: string, refreshToken: string }): Promise<any>; // updates an existing entity
_createEntity(data: { profile: any, accessToken: string, refreshToken: string }): Promise<any>; // creates an entity if they didn't exist already

View File

@@ -2,6 +2,7 @@
// Project: http://feathersjs.com/
// Definitions by: Jan Lohage <https://github.com/j2L4e>
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
// TypeScript Version: 2.3
import { Application } from '@feathersjs/feathers';

View File

@@ -2,7 +2,7 @@
// Project: http://feathersjs.com/
// Definitions by: Jan Lohage <https://github.com/j2L4e>
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
// TypeScript Version: 2.2
// TypeScript Version: 2.3
import { Application as FeathersApplication } from '@feathersjs/feathers';
import * as express from 'express';

View File

@@ -2,6 +2,7 @@
// Project: http://feathersjs.com/
// Definitions by: Jan Lohage <https://github.com/j2L4e>
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
// TypeScript Version: 2.3
// primus removed its typings from the repo https://github.com/primus/primus/pull/623, as of 01/2018 there are none on DT
export default function feathersPrimusClient(socket: any, options?: FeathersPrimusClientOptions): () => void;

View File

@@ -2,6 +2,7 @@
// Project: http://feathersjs.com/
// Definitions by: Jan Lohage <https://github.com/j2L4e>
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
// TypeScript Version: 2.3
/// <reference types="socket.io-client" />