Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sindresorhus/type-fest
/ functions
Functions
107 in github.com/sindresorhus/type-fest
⨍
Functions
107
◇
Types & classes
84
↓ 6 callers
Function
createRuleTester
(overrides = {})
lint-rules/test-utils.js:8
↓ 6 callers
Method
run
()
test-d/conditional-pick.ts:9
↓ 5 callers
Function
test
(_: SingleKeyObject<T>)
test-d/single-key-object.ts:4
↓ 3 callers
Function
exportType
(...prefixes)
lint-rules/test-utils.js:190
↓ 3 callers
Function
withBar
(Ctor: T)
test-d/abstract-class.ts:22
↓ 2 callers
Function
createFixtures
lint-rules/test-utils.js:51
↓ 2 callers
Function
exportTypeAndOption
(...prefixes)
lint-rules/test-utils.js:262
↓ 2 callers
Function
fence
(code, lang = '')
lint-rules/test-utils.js:130
↓ 2 callers
Function
fixturePath
lint-rules/test-utils.js:64
↓ 2 callers
Function
functionReceivingAbsClass
(cls: AbstractClass<T>)
test-d/abstract-class.ts:18
↓ 2 callers
Function
jsdoc
(...lines)
lint-rules/test-utils.js:160
↓ 2 callers
Function
print
lint-rules/validate-jsdoc-codeblocks.js:259
↓ 1 callers
Function
assertWithBar
()
test-d/abstract-class.ts:44
↓ 1 callers
Function
asyncFunction
()
test-d/async-return-type.ts:4
↓ 1 callers
Function
asyncPromiseLike
()
test-d/async-return-type.ts:15
↓ 1 callers
Function
castArray2
(value: Arrayable<T>)
test-d/arrayable.ts:19
↓ 1 callers
Function
createArray
(dimensions: T)
test-d/multidimensional-readonly-array.ts:4
↓ 1 callers
Function
createArray
(dimensions: T)
test-d/multidimensional-array.ts:4
↓ 1 callers
Function
createComplexOption
(type: ComplexOption['type'])
test-d/schema.ts:87
↓ 1 callers
Function
createTypeAwareRuleTester
(fixtureFiles, options = {})
lint-rules/test-utils.js:69
↓ 1 callers
Function
errorAt
lint-rules/test-utils.js:280
↓ 1 callers
Function
exportOption
(...prefixes)
lint-rules/test-utils.js:224
↓ 1 callers
Function
extractTypeFromQuickInfo
(quickInfo)
lint-rules/validate-jsdoc-codeblocks.js:213
↓ 1 callers
Function
function2
(Cls: Constructor<Foo, [number, number]>)
test-d/class.ts:16
↓ 1 callers
Function
function_
(Cls: Constructor<Foo>)
test-d/class.ts:12
↓ 1 callers
Function
function_
(arguments_: T)
test-d/exact.ts:5
↓ 1 callers
Function
getCommentForType
(type)
lint-rules/validate-jsdoc-codeblocks.js:313
↓ 1 callers
Function
getJSDocNode
(sourceCode, node)
lint-rules/validate-jsdoc-codeblocks.js:62
↓ 1 callers
Function
getLeftmostQuickInfo
(env, line, lineOffset, verbosityLevel)
lint-rules/validate-jsdoc-codeblocks.js:204
↓ 1 callers
Function
incorrectTwoslashFormatErrorAt
lint-rules/validate-jsdoc-codeblocks.test.js:15
↓ 1 callers
Function
incorrectTwoslashTypeErrorAt
lint-rules/validate-jsdoc-codeblocks.test.js:14
↓ 1 callers
Function
indentsUptoIndex
@param {string} text @param {number} index @param {string} indent @returns {number}
lint-processors/jsdoc-codeblocks.js:21
↓ 1 callers
Function
invalidCodeblockErrorAt
lint-rules/validate-jsdoc-codeblocks.test.js:13
↓ 1 callers
Function
invalidImport
(code, output)
lint-rules/import-path.test.js:6
↓ 1 callers
Function
invalidSourceFile
(filename, code = '')
lint-rules/source-files-extension.test.js:6
↓ 1 callers
Function
isNumeric
lint-rules/validate-jsdoc-codeblocks.js:261
↓ 1 callers
Function
missingEmptyExport
(code, filename, output)
lint-rules/require-export.test.js:6
↓ 1 callers
Function
missingExportError
lint-rules/require-exported-types.test.js:34
↓ 1 callers
Function
normalizeType
(type, onlySortNumbers = false)
lint-rules/validate-jsdoc-codeblocks.js:246
↓ 1 callers
Function
onlyAcceptNameImproved
(arguments_: T)
test-d/exact.ts:405
↓ 1 callers
Function
parseCompilerOptions
(code)
lint-rules/validate-jsdoc-codeblocks.js:33
↓ 1 callers
Function
reportTypeMismatch
({context, messageId, start, end, data, fix})
lint-rules/validate-jsdoc-codeblocks.js:327
↓ 1 callers
Function
testCase
lint-rules/readme-jsdoc-sync.test.js:65
↓ 1 callers
Method
toJSON
()
test-d/jsonify.ts:103
↓ 1 callers
Function
validateTwoslashTypes
(context, env, code, codeStartIndex)
lint-rules/validate-jsdoc-codeblocks.js:341
↓ 1 callers
Function
visit
lint-rules/validate-jsdoc-codeblocks.js:263
↓ 1 callers
Function
writeFixture
(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
Function
ExportNamedDeclaration
(node)
lint-rules/require-export.js:26
Function
Program
(node)
lint-rules/source-files-extension.js:27
Function
TSTypeAliasDeclaration
(node)
lint-rules/validate-jsdoc-codeblocks.js:122
Method
accessor
()
test-d/readonly-deep.ts:159
Function
arrowFunction
(_a: number)
test-d/set-parameter-type.ts:13
Method
barMethod
()
test-d/abstract-class.ts:41
Function
castArray1
(value: Arrayable<Item>)
test-d/arrayable.ts:13
Function
checkExportedType
lint-rules/require-exported-types.js:97
Function
constructor
(x: number)
test-d/abstract-class.ts:7
Method
constructor
(_x: number, _y: number)
test-d/abstract-class.ts:36
Method
constructor
(HousingType: AbstractClass<BuildingType, [Census]>)
test-d/abstract-class.ts:82
Method
constructor
(_x: number, _y: any)
test-d/class.ts:6
Method
constructor
(parameterTop: number, parameterLeft: number)
test-d/class.ts:36
Method
constructor
(buildingOwners: T)
test-d/class.ts:62
Method
constructor
(HousingType: Class<BuildingType, [Census]>)
test-d/class.ts:76
Function
create
(context)
lint-processors/fixtures/eslint.config.js:6
Function
create
(context)
lint-rules/require-exported-types.js:31
Function
create
(context)
lint-rules/require-export.js:15
Function
create
(context)
lint-rules/source-files-extension.js:17
Function
create
(context)
lint-rules/readme-jsdoc-sync.js:23
Function
create
(context)
lint-rules/validate-jsdoc-codeblocks.js:107
Function
create
(context)
lint-rules/import-path.js:17
Function
extendedBarMethod
()
test-d/abstract-class.ts:25
Function
fix
(fixer)
lint-rules/require-export.js:37
Function
fix
(fixer)
lint-rules/readme-jsdoc-sync.js:99
Function
fix
(fixer)
lint-rules/validate-jsdoc-codeblocks.js:335
Function
fix
(fixer)
lint-rules/import-path.js:49
Function
function1
(this: Date)
test-d/set-return-type.ts:17
Function
functionWithThis
(this: Global, _a: number)
test-d/set-parameter-type.ts:9
Function
function_
(_a: number, _b: string, _c: Object, ..._arguments: boolean[])
test-d/set-parameter-type.ts:4
Function
listItem
(node)
lint-rules/readme-jsdoc-sync.js:29
Method
method
()
test-d/class.ts:9
Function
move
(position: Position)
test-d/conditional-simplify-deep.ts:51
Method
move
(position: Position)
test-d/conditional-simplify-deep.ts:30
Function
narrowingTest
(foo: Simplify<RequireExactlyOne<{a: string; b: string}>>)
test-d/require-exactly-one.ts:34
Function
narrowingTest
(foo: Simplify<RequireOneOrNone<{a: string; b: string}>>)
test-d/require-one-or-none.ts:28
Function
narrowingTest
(foo: Simplify<RequireAllOrNone<{a: string; b: string}>>)
test-d/require-all-or-none.ts:36
Function
narrowingTest2
(foo: Simplify<RequireExactlyOne<{a: string; b: string; c: string}>>)
test-d/require-exactly-one.ts:48
Function
narrowingTest2
(foo: Simplify<RequireOneOrNone<{a: string; b: string; c: string}>>)
test-d/require-one-or-none.ts:49
Function
narrowingTest2
(foo: Simplify<RequireAllOrNone<{a: string; b: string; c: string}>>)
test-d/require-all-or-none.ts:50
Function
narrowingTest3
(foo: Simplify<RequireExactlyOne<{a: string; b: string; c: string}, 'a' | 'b'>>)
test-d/require-exactly-one.ts:72
Function
narrowingTest3
(foo: Simplify<RequireOneOrNone<{a: string; b: string; c: string}, 'a' | 'b'>>)
test-d/require-one-or-none.ts:81
Function
narrowingTest3
(foo: Simplify<RequireAllOrNone<{a: string; b: string; c: string}, 'a' | 'b'>>)
test-d/require-all-or-none.ts:66
Function
next
()
test-d/observable-like.ts:9
Function
postprocess
@param {import('eslint').Linter.LintMessage[][]} messages @param {string} filename @returns {import('eslint').Linter.LintMessage[]}
lint-processors/jsdoc-codeblocks.js:111
Function
preprocess
@param {string} text @param {string} filename @returns {(string | Linter.ProcessorFile)[]}
lint-processors/jsdoc-codeblocks.js:51
Function
processPayment
(payment: ExclusifyUnion<CardPayment | PaypalPayment>)
test-d/exclusify-union.ts:75
Method
run
()
test-d/conditional-except.ts:9
Function
secretGenerator
()
test-d/iterable-element.ts:10
next →
1–100 of 107, ranked by callers