@modern-js/types
Advanced tools
Comparing version 0.0.0-nightly-20240818170637 to 0.0.0-nightly-20240819170736
@@ -18,3 +18,3 @@ { | ||
], | ||
"version": "0.0.0-nightly-20240818170637", | ||
"version": "0.0.0-nightly-20240819170736", | ||
"types": "./index.d.ts", | ||
@@ -49,4 +49,4 @@ "exports": { | ||
"type-fest": "2.15.0", | ||
"@scripts/build": "0.0.0-nightly-20240818170637", | ||
"@scripts/jest-config": "0.0.0-nightly-20240818170637" | ||
"@scripts/build": "0.0.0-nightly-20240819170736", | ||
"@scripts/jest-config": "0.0.0-nightly-20240819170736" | ||
}, | ||
@@ -53,0 +53,0 @@ "sideEffects": false, |
@@ -1,2 +0,2 @@ | ||
import { | ||
import type { | ||
IncomingMessage, | ||
@@ -7,5 +7,5 @@ ServerResponse, | ||
} from 'http'; | ||
import qs from 'querystring'; | ||
import type qs from 'querystring'; | ||
import type { SSRMode } from 'common'; | ||
import { Metrics, Logger, Reporter, ServerTiming } from './utils'; | ||
import type { Metrics, Logger, Reporter, ServerTiming } from './utils'; | ||
@@ -12,0 +12,0 @@ export interface RequestPayload { |
@@ -1,4 +0,8 @@ | ||
import { IncomingMessage, ServerResponse, IncomingHttpHeaders } from 'http'; | ||
import { Reporter } from './utils'; | ||
import { ServerRoute } from './route'; | ||
import type { | ||
IncomingMessage, | ||
ServerResponse, | ||
IncomingHttpHeaders, | ||
} from 'http'; | ||
import type { Reporter } from './utils'; | ||
import type { ServerRoute } from './route'; | ||
@@ -5,0 +9,0 @@ export type CookieAPI = { |
@@ -1,10 +0,11 @@ | ||
import { RequestPayload } from './context'; | ||
import type { RequestPayload } from './context'; | ||
interface Set<V extends Record<string>> { | ||
<Key extends keyof V>(key: Key, value: V[Key]): void; | ||
} | ||
type Set<V extends Record<string>> = <Key extends keyof V>( | ||
key: Key, | ||
value: V[Key], | ||
) => void; | ||
interface Get<V extends Record<string, unknown>> { | ||
<Key extends keyof V>(key: Key): V[Key]; | ||
} | ||
type Get<V extends Record<string, unknown>> = <Key extends keyof V>( | ||
key: Key, | ||
) => V[Key]; | ||
@@ -11,0 +12,0 @@ type Body = ReadableStream | ArrayBuffer | string | null; |
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
24231
741