Skip to content

Commit

Permalink
use .ts imports
Browse files Browse the repository at this point in the history
  • Loading branch information
andrej-dyck committed May 14, 2024
1 parent cf8bc81 commit b40d8ae
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion events/TypedEvents.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test } from 'vitest'
import { typedEvents } from './TypedEvents.js'
import { typedEvents } from './TypedEvents.ts'

describe('TypedEvents', () => {

Expand Down
2 changes: 1 addition & 1 deletion events/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './TypedEvents.js'
export * from './TypedEvents.ts'
18 changes: 9 additions & 9 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export * from './events/index.js'
export * from './json/index.js'
export * from './lazy/index.js'
export * from './locale/index.js'
export * from './nullables/index.js'
export * from './raise/index.js'
export * from './records/index.js'
export * from './sequences/index.js'
export * from './types/index.js'
export * from './events/index.ts'
export * from './json/index.ts'
export * from './lazy/index.ts'
export * from './locale/index.ts'
export * from './nullables/index.ts'
export * from './raise/index.ts'
export * from './records/index.ts'
export * from './sequences/index.ts'
export * from './types/index.ts'
2 changes: 1 addition & 1 deletion json/maybeJson.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from 'vitest'
import { maybeJson } from './index.js'
import { maybeJson } from './index.ts'
import { z } from 'zod'

test.each([
Expand Down
2 changes: 1 addition & 1 deletion lazy/lazy.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from 'vitest'
import { lazy } from './index.js'
import { lazy } from './index.ts'

test('lazy remembers the value of its function', () => {
const lazyValue = lazy(() => 1)
Expand Down
2 changes: 1 addition & 1 deletion locale/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './localeNumber.js'
export * from './localeNumber.ts'
2 changes: 1 addition & 1 deletion locale/localeNumber.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it, test } from 'vitest'
import { localeNumber, Locale } from './localeNumber.js'
import { localeNumber, Locale } from './localeNumber.ts'

describe('localeNumber', () => {

Expand Down
2 changes: 1 addition & 1 deletion memoize/memoize.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test } from 'vitest'
import { memoize } from './index.js'
import { memoize } from './index.ts'

describe('memoize', () => {

Expand Down
2 changes: 1 addition & 1 deletion records/hasField.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from 'vitest'
import { hasField } from './hasField.js'
import { hasField } from './hasField.ts'

test('hasField infers that a field exists on an unknown object', () => {
const obj: unknown = { id: 1 }
Expand Down
6 changes: 3 additions & 3 deletions records/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './hasField.js'
export * from './pickFields.js'
export * from './omitFields.js'
export * from './hasField.ts'
export * from './pickFields.ts'
export * from './omitFields.ts'
2 changes: 1 addition & 1 deletion records/omitFields.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from 'vitest'
import { omitFields } from './omitFields.js'
import { omitFields } from './omitFields.ts'

test('omitFields omits a field from an object', () => {
expect(omitFields({ a: 1, b: 2, c: 3 }, 'b')).toMatchObject({ a: 1, c: 3 })
Expand Down
2 changes: 1 addition & 1 deletion records/pickFields.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from 'vitest'
import { pickFields } from './pickFields.js'
import { pickFields } from './pickFields.ts'

test('pickFields picks a field from an object', () => {
expect(pickFields({ a: 1, b: 2, c: 3 }, 'b')).toMatchObject({ b: 2 })
Expand Down
2 changes: 1 addition & 1 deletion sequences/generateSequence.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from 'vitest'
import { generateSequence } from './index.js'
import { generateSequence } from './index.ts'

test('generateSequence has only seed when next is null', () => {
expect([...generateSequence(1, () => null)]).toEqual([1])
Expand Down
2 changes: 1 addition & 1 deletion sequences/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './generateSequence.js'
export * from './generateSequence.ts'
2 changes: 1 addition & 1 deletion types/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './DeepPartial.js'
export * from './DeepPartial.ts'

0 comments on commit b40d8ae

Please sign in to comment.