MCPcopy
hub / github.com/sindresorhus/ky / ky

Function ky

source/index.ts:12–12  ·  view source on GitHub ↗
(input: Input, options?: Options)

Source from the content-addressed store, hash-verified

10const createInstance = (defaults?: Partial<Options>): KyInstance => {
11 // eslint-disable-next-line @typescript-eslint/promise-function-async
12 const ky: Partial<Mutable<KyInstance>> = (input: Input, options?: Options) => Ky.create(input, validateAndMerge(defaults, options));
13
14 for (const method of requestMethods) {
15 // eslint-disable-next-line @typescript-eslint/promise-function-async

Callers 13

bytes.tsFile · 0.85
headers.tsFile · 0.85
methods.tsFile · 0.85
http-error.tsFile · 0.85
prefix.tsFile · 0.85
hooks.tsFile · 0.85
main.tsFile · 0.85
stream.tsFile · 0.85
retry.tsFile · 0.85
testFunction · 0.85
fetch.tsFile · 0.85

Calls 2

validateAndMergeFunction · 0.85
createMethod · 0.80

Tested by 1

testFunction · 0.68