@tinyhttp/accepts
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -13,4 +13,4 @@ /// <reference types="node" /> | ||
*/ | ||
types(types: string | string[], ...args: string[]): string | false | string[]; | ||
get type(): (types: string | string[], ...args: string[]) => string | false | string[]; | ||
types(types: string | string[], ...args: string[]): string[] | string | false; | ||
get type(): (types: string | string[], ...args: string[]) => string[] | string | false; | ||
/** | ||
@@ -24,4 +24,4 @@ * Return accepted encodings or best fit based on `encodings`. | ||
*/ | ||
encodings(encodings: string | string[], ...args: string[]): string | false | string[]; | ||
get encoding(): (encodings: string | string[], ...args: string[]) => string | false | string[]; | ||
encodings(encodings: string | string[], ...args: string[]): string | string[] | boolean; | ||
get encoding(): (encodings: string | string[], ...args: string[]) => string | string[] | boolean; | ||
/** | ||
@@ -35,4 +35,4 @@ * Return accepted charsets or best fit based on `charsets`. | ||
*/ | ||
charsets(charsets?: string | string[], ...args: string[]): string | false | string[]; | ||
get charset(): (charsets?: string | string[], ...args: string[]) => string | false | string[]; | ||
charsets(charsets?: string | string[], ...args: string[]): string | string[] | boolean; | ||
get charset(): (charsets: string | string[], ...args: string[]) => string | string[] | boolean; | ||
/** | ||
@@ -47,6 +47,6 @@ * Return accepted languages or best fit based on `langs`. | ||
*/ | ||
languages(languages: string | string[], ...args: string[]): string | false | string[]; | ||
get lang(): (languages: string | string[], ...args: string[]) => string | false | string[]; | ||
get langs(): (languages: string | string[], ...args: string[]) => string | false | string[]; | ||
get language(): (languages: string | string[], ...args: string[]) => string | false | string[]; | ||
languages(languages: string | string[], ...args: string[]): string | string[] | boolean; | ||
get lang(): (languages: string | string[], ...args: string[]) => string | string[] | boolean; | ||
get langs(): (languages: string | string[], ...args: string[]) => string | string[] | boolean; | ||
get language(): (languages: string | string[], ...args: string[]) => string | string[] | boolean; | ||
} |
{ | ||
"name": "@tinyhttp/accepts", | ||
"description": "accepts rewrite in TypeScript with ESM and CommonJS targets", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"homepage": "https://tinyhttp.v1rtl.site", | ||
@@ -6,0 +6,0 @@ "funding": { |
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
11486