MCPcopy Create free account

hub / github.com/sindresorhus/type-fest / functions

Functions107 in github.com/sindresorhus/type-fest

↓ 6 callersFunctioncreateRuleTester
(overrides = {})
lint-rules/test-utils.js:8
↓ 6 callersMethodrun
()
test-d/conditional-pick.ts:9
↓ 5 callersFunctiontest
(_: SingleKeyObject<T>)
test-d/single-key-object.ts:4
↓ 3 callersFunctionexportType
(...prefixes)
lint-rules/test-utils.js:190
↓ 3 callersFunctionwithBar
(Ctor: T)
test-d/abstract-class.ts:22
↓ 2 callersFunctioncreateFixtures
lint-rules/test-utils.js:51
↓ 2 callersFunctionexportTypeAndOption
(...prefixes)
lint-rules/test-utils.js:262
↓ 2 callersFunctionfence
(code, lang = '')
lint-rules/test-utils.js:130
↓ 2 callersFunctionfixturePath
lint-rules/test-utils.js:64
↓ 2 callersFunctionfunctionReceivingAbsClass
(cls: AbstractClass<T>)
test-d/abstract-class.ts:18
↓ 2 callersFunctionjsdoc
(...lines)
lint-rules/test-utils.js:160
↓ 2 callersFunctionprint
lint-rules/validate-jsdoc-codeblocks.js:259
↓ 1 callersFunctionassertWithBar
()
test-d/abstract-class.ts:44
↓ 1 callersFunctionasyncFunction
()
test-d/async-return-type.ts:4
↓ 1 callersFunctionasyncPromiseLike
()
test-d/async-return-type.ts:15
↓ 1 callersFunctioncastArray2
(value: Arrayable<T>)
test-d/arrayable.ts:19
↓ 1 callersFunctioncreateArray
(dimensions: T)
test-d/multidimensional-readonly-array.ts:4
↓ 1 callersFunctioncreateArray
(dimensions: T)
test-d/multidimensional-array.ts:4
↓ 1 callersFunctioncreateComplexOption
(type: ComplexOption['type'])
test-d/schema.ts:87
↓ 1 callersFunctioncreateTypeAwareRuleTester
(fixtureFiles, options = {})
lint-rules/test-utils.js:69
↓ 1 callersFunctionerrorAt
lint-rules/test-utils.js:280
↓ 1 callersFunctionexportOption
(...prefixes)
lint-rules/test-utils.js:224
↓ 1 callersFunctionextractTypeFromQuickInfo
(quickInfo)
lint-rules/validate-jsdoc-codeblocks.js:213
↓ 1 callersFunctionfunction2
(Cls: Constructor<Foo, [number, number]>)
test-d/class.ts:16
↓ 1 callersFunctionfunction_
(Cls: Constructor<Foo>)
test-d/class.ts:12
↓ 1 callersFunctionfunction_
(arguments_: T)
test-d/exact.ts:5
↓ 1 callersFunctiongetCommentForType
(type)
lint-rules/validate-jsdoc-codeblocks.js:313
↓ 1 callersFunctiongetJSDocNode
(sourceCode, node)
lint-rules/validate-jsdoc-codeblocks.js:62
↓ 1 callersFunctiongetLeftmostQuickInfo
(env, line, lineOffset, verbosityLevel)
lint-rules/validate-jsdoc-codeblocks.js:204
↓ 1 callersFunctionincorrectTwoslashFormatErrorAt
lint-rules/validate-jsdoc-codeblocks.test.js:15
↓ 1 callersFunctionincorrectTwoslashTypeErrorAt
lint-rules/validate-jsdoc-codeblocks.test.js:14
↓ 1 callersFunctionindentsUptoIndex
@param {string} text @param {number} index @param {string} indent @returns {number}
lint-processors/jsdoc-codeblocks.js:21
↓ 1 callersFunctioninvalidCodeblockErrorAt
lint-rules/validate-jsdoc-codeblocks.test.js:13
↓ 1 callersFunctioninvalidImport
(code, output)
lint-rules/import-path.test.js:6
↓ 1 callersFunctioninvalidSourceFile
(filename, code = '')
lint-rules/source-files-extension.test.js:6
↓ 1 callersFunctionisNumeric
lint-rules/validate-jsdoc-codeblocks.js:261
↓ 1 callersFunctionmissingEmptyExport
(code, filename, output)
lint-rules/require-export.test.js:6
↓ 1 callersFunctionmissingExportError
lint-rules/require-exported-types.test.js:34
↓ 1 callersFunctionnormalizeType
(type, onlySortNumbers = false)
lint-rules/validate-jsdoc-codeblocks.js:246
↓ 1 callersFunctiononlyAcceptNameImproved
(arguments_: T)
test-d/exact.ts:405
↓ 1 callersFunctionparseCompilerOptions
(code)
lint-rules/validate-jsdoc-codeblocks.js:33
↓ 1 callersFunctionreportTypeMismatch
({context, messageId, start, end, data, fix})
lint-rules/validate-jsdoc-codeblocks.js:327
↓ 1 callersFunctiontestCase
lint-rules/readme-jsdoc-sync.test.js:65
↓ 1 callersMethodtoJSON
()
test-d/jsonify.ts:103
↓ 1 callersFunctionvalidateTwoslashTypes
(context, env, code, codeStartIndex)
lint-rules/validate-jsdoc-codeblocks.js:341
↓ 1 callersFunctionvisit
lint-rules/validate-jsdoc-codeblocks.js:263
↓ 1 callersFunctionwriteFixture
(relativePath, content)
lint-rules/test-utils.js:54
Function'ImportDeclaration, ExportNamedDeclaration, ExportAllDeclaration'
(node)
lint-rules/import-path.js:19
Function'Program'
(node)
lint-rules/require-exported-types.js:54
Function'Program:exit'
(node)
lint-rules/require-export.js:32
Function'TSTypeAliasDeclaration Literal'
(node)
lint-processors/fixtures/eslint.config.js:8
FunctionExportNamedDeclaration
(node)
lint-rules/require-export.js:26
FunctionProgram
(node)
lint-rules/source-files-extension.js:27
FunctionTSTypeAliasDeclaration
(node)
lint-rules/validate-jsdoc-codeblocks.js:122
Methodaccessor
()
test-d/readonly-deep.ts:159
FunctionarrowFunction
(_a: number)
test-d/set-parameter-type.ts:13
MethodbarMethod
()
test-d/abstract-class.ts:41
FunctioncastArray1
(value: Arrayable<Item>)
test-d/arrayable.ts:13
FunctioncheckExportedType
lint-rules/require-exported-types.js:97
Functionconstructor
(x: number)
test-d/abstract-class.ts:7
Methodconstructor
(_x: number, _y: number)
test-d/abstract-class.ts:36
Methodconstructor
(HousingType: AbstractClass<BuildingType, [Census]>)
test-d/abstract-class.ts:82
Methodconstructor
(_x: number, _y: any)
test-d/class.ts:6
Methodconstructor
(parameterTop: number, parameterLeft: number)
test-d/class.ts:36
Methodconstructor
(buildingOwners: T)
test-d/class.ts:62
Methodconstructor
(HousingType: Class<BuildingType, [Census]>)
test-d/class.ts:76
Functioncreate
(context)
lint-processors/fixtures/eslint.config.js:6
Functioncreate
(context)
lint-rules/require-exported-types.js:31
Functioncreate
(context)
lint-rules/require-export.js:15
Functioncreate
(context)
lint-rules/source-files-extension.js:17
Functioncreate
(context)
lint-rules/readme-jsdoc-sync.js:23
Functioncreate
(context)
lint-rules/validate-jsdoc-codeblocks.js:107
Functioncreate
(context)
lint-rules/import-path.js:17
FunctionextendedBarMethod
()
test-d/abstract-class.ts:25
Functionfix
(fixer)
lint-rules/require-export.js:37
Functionfix
(fixer)
lint-rules/readme-jsdoc-sync.js:99
Functionfix
(fixer)
lint-rules/validate-jsdoc-codeblocks.js:335
Functionfix
(fixer)
lint-rules/import-path.js:49
Functionfunction1
(this: Date)
test-d/set-return-type.ts:17
FunctionfunctionWithThis
(this: Global, _a: number)
test-d/set-parameter-type.ts:9
Functionfunction_
(_a: number, _b: string, _c: Object, ..._arguments: boolean[])
test-d/set-parameter-type.ts:4
FunctionlistItem
(node)
lint-rules/readme-jsdoc-sync.js:29
Methodmethod
()
test-d/class.ts:9
Functionmove
(position: Position)
test-d/conditional-simplify-deep.ts:51
Methodmove
(position: Position)
test-d/conditional-simplify-deep.ts:30
FunctionnarrowingTest
(foo: Simplify<RequireExactlyOne<{a: string; b: string}>>)
test-d/require-exactly-one.ts:34
FunctionnarrowingTest
(foo: Simplify<RequireOneOrNone<{a: string; b: string}>>)
test-d/require-one-or-none.ts:28
FunctionnarrowingTest
(foo: Simplify<RequireAllOrNone<{a: string; b: string}>>)
test-d/require-all-or-none.ts:36
FunctionnarrowingTest2
(foo: Simplify<RequireExactlyOne<{a: string; b: string; c: string}>>)
test-d/require-exactly-one.ts:48
FunctionnarrowingTest2
(foo: Simplify<RequireOneOrNone<{a: string; b: string; c: string}>>)
test-d/require-one-or-none.ts:49
FunctionnarrowingTest2
(foo: Simplify<RequireAllOrNone<{a: string; b: string; c: string}>>)
test-d/require-all-or-none.ts:50
FunctionnarrowingTest3
(foo: Simplify<RequireExactlyOne<{a: string; b: string; c: string}, 'a' | 'b'>>)
test-d/require-exactly-one.ts:72
FunctionnarrowingTest3
(foo: Simplify<RequireOneOrNone<{a: string; b: string; c: string}, 'a' | 'b'>>)
test-d/require-one-or-none.ts:81
FunctionnarrowingTest3
(foo: Simplify<RequireAllOrNone<{a: string; b: string; c: string}, 'a' | 'b'>>)
test-d/require-all-or-none.ts:66
Functionnext
()
test-d/observable-like.ts:9
Functionpostprocess
@param {import('eslint').Linter.LintMessage[][]} messages @param {string} filename @returns {import('eslint').Linter.LintMessage[]}
lint-processors/jsdoc-codeblocks.js:111
Functionpreprocess
@param {string} text @param {string} filename @returns {(string | Linter.ProcessorFile)[]}
lint-processors/jsdoc-codeblocks.js:51
FunctionprocessPayment
(payment: ExclusifyUnion<CardPayment | PaypalPayment>)
test-d/exclusify-union.ts:75
Methodrun
()
test-d/conditional-except.ts:9
FunctionsecretGenerator
()
test-d/iterable-element.ts:10
next →1–100 of 107, ranked by callers