Skip to content

Commit

Permalink
docs: 📝 update remaining mis-spellings of IsArray to match new implem…
Browse files Browse the repository at this point in the history
…entation
  • Loading branch information
CRBroughton committed May 15, 2024
1 parent 3827431 commit 9032eae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ A collection of helper TypeScript types to test other TypeScript types. This col
- Excludes - Check if a type doesn't contain another type
- Includes - Check if a type includes another type
- Extends - Check if one type is extending another type
- isArray - Checks if a type is an array
- isNotArray - Checks if a type is not an array
- IsArray - Checks if a type is an array
- IsNotArray - Checks if a type is not an array
- Length - Check a given types length; Combine this with the 'Equals' type checker
- Position - Returns a type in the given position of an array; Combine this with the 'Equals' type checker
- IsNullable - Check if a type is nullable
Expand Down
6 changes: 3 additions & 3 deletions tests/isArray.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
import { describe, it } from 'bun:test'
import type { Expect, IsArray } from '../index'

describe('isArray tests', () => {
it('Passes the isArray test when the type is an array', () => {
describe('IsArray tests', () => {
it('Passes the IsArray test when the type is an array', () => {
type Result = Expect<IsArray<{ id: number }[]>>
// ^?
})
it('Failed the isArray test when the type is not an array', () => {
it('Failed the IsArray test when the type is not an array', () => {
// @ts-expect-error - Fails the exclusion
type Result = Expect<IsArray<{ id: string }>>
// ^?
Expand Down

0 comments on commit 9032eae

Please sign in to comment.