@types/koa-session
Advanced tools
Comparing version 6.4.1 to 6.4.2
@@ -125,3 +125,5 @@ // Type definitions for koa-session 6.4 | ||
interface opts<StateT = Koa.DefaultState, ContextT = Koa.DefaultContext, ResponseBodyT = any> extends Omit<Cookies.SetOption, 'maxAge'> { | ||
interface opts<StateT = Koa.DefaultState, ContextT = Koa.DefaultContext, ResponseBodyT = any> | ||
extends Omit<Cookies.SetOption, "maxAge"> | ||
{ | ||
/** | ||
@@ -212,3 +214,8 @@ * cookie key (default is koa:sess) | ||
*/ | ||
set(key: string, sess: Partial<Session> & { _expire?: number | undefined, _maxAge?: number | undefined }, maxAge: opts["maxAge"], data: { changed: boolean; rolling: opts["rolling"] }): any; | ||
set( | ||
key: string, | ||
sess: Partial<Session> & { _expire?: number | undefined; _maxAge?: number | undefined }, | ||
maxAge: opts["maxAge"], | ||
data: { changed: boolean; rolling: opts["rolling"] }, | ||
): any; | ||
@@ -235,6 +242,9 @@ /** | ||
declare function session<StateT = Koa.DefaultState, ContextT = Koa.DefaultContext, ResponseBodyT = any>( | ||
CONFIG: Partial<session.opts<StateT, ContextT, ResponseBodyT>>, app: Koa<StateT, ContextT> | ||
CONFIG: Partial<session.opts<StateT, ContextT, ResponseBodyT>>, | ||
app: Koa<StateT, ContextT>, | ||
): Koa.Middleware<StateT, ContextT, ResponseBodyT>; | ||
declare function session<StateT = Koa.DefaultState, ContextT = Koa.DefaultContext>(app: Koa<StateT, ContextT>): Koa.Middleware<StateT, ContextT>; | ||
declare function session<StateT = Koa.DefaultState, ContextT = Koa.DefaultContext>( | ||
app: Koa<StateT, ContextT>, | ||
): Koa.Middleware<StateT, ContextT>; | ||
@@ -241,0 +251,0 @@ declare module "koa" { |
@@ -1,4 +0,2 @@ | ||
import { | ||
ContextSession, | ||
} from ".."; | ||
import { ContextSession } from ".."; | ||
@@ -5,0 +3,0 @@ declare const c: ContextSession; |
@@ -1,4 +0,2 @@ | ||
import { | ||
Session, | ||
} from ".."; | ||
import { Session } from ".."; | ||
@@ -5,0 +3,0 @@ declare const s: Session; |
@@ -1,4 +0,2 @@ | ||
import { | ||
util, | ||
} from ".."; | ||
import { util } from ".."; | ||
@@ -5,0 +3,0 @@ declare const u: util; |
{ | ||
"name": "@types/koa-session", | ||
"version": "6.4.1", | ||
"version": "6.4.2", | ||
"description": "TypeScript definitions for koa-session", | ||
@@ -36,4 +36,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-session", | ||
}, | ||
"typesPublisherContentHash": "99dcc6d2030b0a5d0ebcca10d3d68b44b51915b2d8dde5036b895f6998a5b57f", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "bda7dd4e8c10fe3ae1a46b8c2b43beafe37b917252be60365c2e2a39da97c97b", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 25 Apr 2023 10:32:40 GMT | ||
* Last updated: Thu, 14 Sep 2023 01:49:18 GMT | ||
* Dependencies: [@types/cookies](https://npmjs.com/package/@types/cookies), [@types/koa](https://npmjs.com/package/@types/koa) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10743
213