From 85c11ed45436512fec8c2f470dfddcdf95eba7b7 Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 23 Oct 2017 07:52:59 -0700 Subject: [PATCH] csrf: Fix lint (#20805) --- types/csrf/index.d.ts | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/types/csrf/index.d.ts b/types/csrf/index.d.ts index df1e455eb8..d6c3b69006 100644 --- a/types/csrf/index.d.ts +++ b/types/csrf/index.d.ts @@ -17,44 +17,27 @@ interface TokensOptions { } declare class Tokens { - /** - * Token generation/verification class. - * - * @param {object} [options] - * @param {number} [options.saltLength=8] The string length of the salt - * @param {number} [options.secretLength=18] The byte length of the secret key - * @public - */ + /** Token generation/verification class. */ constructor(options?: TokensOptions) /** * Create a new CSRF token. * - * @param {string} secret The secret for the token. - * @public + * @param secret The secret for the token. */ create(secret: string): string; - /** - * Create a new secret key. - * - * @param {function} [callback] - * @public - */ + /** Create a new secret key. */ secret(callback?: SecretCallback): Promise; /** * Create a new secret key synchronously. - * @public */ secretSync(): string; /** * Verify if a given token is valid for a given secret. * - * @param {string} secret - * @param {string} token - * @public */ verify(secret: string, token: string): boolean; }