Skip to content

Commit

Permalink
chore: use isolated modules
Browse files Browse the repository at this point in the history
  • Loading branch information
wjhsf committed Jan 9, 2025
1 parent f79144f commit 8e39ae1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
25 changes: 16 additions & 9 deletions lib/cookie/index.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
export { MemoryCookieStore, MemoryCookieStoreIndex } from '../memstore'
export { MemoryCookieStore, type MemoryCookieStoreIndex } from '../memstore'
export { pathMatch } from '../pathMatch'
export { permuteDomain } from '../permuteDomain'
export { getPublicSuffix, GetPublicSuffixOptions } from '../getPublicSuffix'
export {
getPublicSuffix,
type GetPublicSuffixOptions,
} from '../getPublicSuffix'
export { Store } from '../store'
export { ParameterError } from '../validators'
export { version } from '../version'
export { Callback, ErrorCallback, Nullable } from '../utils'
export { type Callback, type ErrorCallback, type Nullable } from '../utils'
export { canonicalDomain } from './canonicalDomain'
export {
PrefixSecurityEnum,
SerializedCookie,
SerializedCookieJar,
type SerializedCookie,
type SerializedCookieJar,
} from './constants'
export { Cookie, CreateCookieOptions, ParseCookieOptions } from './cookie'
export {
Cookie,
type CreateCookieOptions,
type ParseCookieOptions,
} from './cookie'
export { cookieCompare } from './cookieCompare'
export {
CookieJar,
CreateCookieJarOptions,
GetCookiesOptions,
SetCookieOptions,
type CreateCookieJarOptions,
type GetCookiesOptions,
type SetCookieOptions,
} from './cookieJar'
export { defaultPath } from './defaultPath'
export { domainMatch } from './domainMatch'
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"allowUnusedLabels": false,
"allowUnreachableCode": false,
/* Compatibility */
"ignoreDeprecations": "5.0"
"ignoreDeprecations": "5.0",
"isolatedModules": true
},
"include": ["lib"],
"exclude": ["jest.config.ts"]
Expand Down

0 comments on commit 8e39ae1

Please sign in to comment.