Skip to content

Commit

Permalink
build(types)!: drop .type extension
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Aug 3, 2022
1 parent 43d858e commit b3207a6
Show file tree
Hide file tree
Showing 64 changed files with 140 additions and 140 deletions.
12 changes: 6 additions & 6 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ const config = {
},
{
files: [
'src/types/built-in.type.ts',
'src/types/deep-partial-by-helper.type.ts',
'src/types/deep-partial-by-required-helper.type.ts',
'src/types/overwrite.type.ts'
'src/types/built-in.ts',
'src/types/deep-partial-by-helper.ts',
'src/types/deep-partial-by-required-helper.ts',
'src/types/overwrite.ts'
],
rules: {
'@typescript-eslint/ban-types': 0
}
},
{
files: ['src/types/deep-omit.type.ts'],
files: ['src/types/deep-omit.ts'],
rules: {
'@typescript-eslint/sort-type-union-intersection-members': 0
}
},
{
files: ['src/types/or-never.type.ts'],
files: ['src/types/or-never.ts'],
rules: {
'@typescript-eslint/no-redundant-type-constituents': 0
}
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/types/built-in.type.ts → src/types/built-in.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @module tutils/types/BuiltIn
*/

import type Primitive from './primitive.type'
import type Primitive from './primitive'

/**
* Built-in values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @module tutils/types/ClassConstructor
*/

import type ObjectPlain from './object-plain.type'
import type ObjectPlain from './object-plain'

/**
* [Object class][1] type.
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions src/types/deep-omit.type.ts → src/types/deep-omit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* @module tutils/types/DeepOmit
*/

import type BuiltIn from './built-in.type'
import type KeysOptional from './keys-optional.type'
import type KeysRequired from './keys-required.type'
import type ObjectPlain from './object-plain.type'
import type OmitByType from './omit-by-type.type'
import type BuiltIn from './built-in'
import type KeysOptional from './keys-optional'
import type KeysRequired from './keys-required'
import type ObjectPlain from './object-plain'
import type OmitByType from './omit-by-type'

/**
* Omits properties of `T` using filter object `F`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* @module tutils/types/DeepPartialByHelper
*/

import type ObjectPlain from './object-plain.type'
import type Path from './path.type'
import type ObjectPlain from './object-plain'
import type Path from './path'

/**
* `DeepPartialBy` helper.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* @module tutils/types/DeepPartialByHelper
*/

import type ObjectPlain from './object-plain.type'
import type Path from './path.type'
import type ObjectPlain from './object-plain'
import type Path from './path'

/**
* `DeepPartialByRequired` helper.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
* @module tutils/types/DeepPartialByRequired
*/

import type DeepOmit from './deep-omit.type'
import type Helper from './deep-partial-by-required-helper.type'
import type DeepPartial from './deep-partial.type'
import type DeepPick from './deep-pick.type'
import type ObjectPlain from './object-plain.type'
import type Path from './path.type'
import type DeepOmit from './deep-omit'
import type DeepPartial from './deep-partial'
import type Helper from './deep-partial-by-required-helper'
import type DeepPick from './deep-pick'
import type ObjectPlain from './object-plain'
import type Path from './path'

/**
* Constructs a type where properties `H['pick']` will become required, and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* @module tutils/types/DeepPartialBy
*/

import type DeepOmit from './deep-omit.type'
import type Helper from './deep-partial-by-helper.type'
import type DeepPartial from './deep-partial.type'
import type DeepPick from './deep-pick.type'
import type ObjectPlain from './object-plain.type'
import type DeepOmit from './deep-omit'
import type DeepPartial from './deep-partial'
import type Helper from './deep-partial-by-helper'
import type DeepPick from './deep-pick'
import type ObjectPlain from './object-plain'

/**
* Constructs a type where properties `H['omit']` will become optional.
Expand Down
6 changes: 3 additions & 3 deletions src/types/deep-partial.type.ts → src/types/deep-partial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* @module tutils/types/DeepPartial
*/

import type BuiltIn from './built-in.type'
import type IsTuple from './is-tuple.type'
import type ObjectUnknown from './object-unknown.type'
import type BuiltIn from './built-in'
import type IsTuple from './is-tuple'
import type ObjectUnknown from './object-unknown'

/**
* Recursive version of [`Partial`][1].
Expand Down
8 changes: 4 additions & 4 deletions src/types/deep-pick.type.ts → src/types/deep-pick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
* @module tutils/types/DeepPick
*/

import type ObjectPlain from './object-plain.type'
import type OmitByType from './omit-by-type.type'
import type PathValue from './path-value.type'
import type Path from './path.type'
import type ObjectPlain from './object-plain'
import type OmitByType from './omit-by-type'
import type Path from './path'
import type PathValue from './path-value'

/**
* Constructs a type by picking a set of properties `K` from `T`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* @module tutils/types/DeepRequired
*/

import type BuiltIn from './built-in.type'
import type ObjectUnknown from './object-unknown.type'
import type BuiltIn from './built-in'
import type ObjectUnknown from './object-unknown'

/**
* Recursive version of [`Required`][1].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* @module tutils/types/DocumentDeepPartial
*/

import type DUID from './duid.type'
import type ObjectPlain from './object-plain.type'
import type ObjectUnknown from './object-unknown.type'
import type OrDeepPartial from './or-deep-partial.type'
import type UID from './uid.type'
import type DUID from './duid'
import type ObjectPlain from './object-plain'
import type ObjectUnknown from './object-unknown'
import type OrDeepPartial from './or-deep-partial'
import type UID from './uid'

/**
* Object that includes all object properties or a subset.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* @module tutils/types/DocumentPartial
*/

import type DUID from './duid.type'
import type ObjectPlain from './object-plain.type'
import type ObjectUnknown from './object-unknown.type'
import type OrPartial from './or-partial.type'
import type UID from './uid.type'
import type DUID from './duid'
import type ObjectPlain from './object-plain'
import type ObjectUnknown from './object-unknown'
import type OrPartial from './or-partial'
import type UID from './uid'

/**
* Object that includes all object properties or a subset.
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/types/empty-value.type.ts → src/types/empty-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* @module tutils/types/EmptyValue
*/

import type EmptyString from './empty-string.type'
import type NIL from './nil.type'
import type EmptyString from './empty-string'
import type NIL from './nil'

/**
* Type representing `null`, `undefined`, and empty strings.
Expand Down
File renamed without changes.
File renamed without changes.
122 changes: 61 additions & 61 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,64 +3,64 @@
* @module tutils/types
*/

export type { default as ANY } from './any.type'
export type { default as Booleanish } from './booleanish.type'
export type { default as BuiltIn } from './built-in.type'
export type { default as ClassConstructor } from './class-constructor.type'
export type { default as ComparisonOperator } from './comparison-operator.type'
export type { default as DeepOmit } from './deep-omit.type'
export type { default as DeepPartialByHelper } from './deep-partial-by-helper.type'
export type { default as DeepPartialByRequiredHelper } from './deep-partial-by-required-helper.type'
export type { default as DeepPartialByRequired } from './deep-partial-by-required.type'
export type { default as DeepPartialBy } from './deep-partial-by.type'
export type { default as DeepPartial } from './deep-partial.type'
export type { default as DeepPick } from './deep-pick.type'
export type { default as DeepRequired } from './deep-required.type'
export type { default as DocumentDeepPartial } from './document-deep-partial.type'
export type { default as DocumentPartial } from './document-partial.type'
export type { default as DUID } from './duid.type'
export type { default as EmptyString } from './empty-string.type'
export type { default as EmptyValue } from './empty-value.type'
export type { default as FIXME } from './fixme.type'
export type { default as IndexSignature } from './index-signature.type'
export type { default as Intersection } from './intersection.type'
export type { default as Join } from './join.type'
export type { default as JSONArray } from './json-array.type'
export type { default as JSONObject } from './json-object.type'
export type { default as JSONPrimitive } from './json-primitive.type'
export type { default as JSONValue } from './json-value.type'
export type { default as KeysOptional } from './keys-optional.type'
export type { default as KeysRequired } from './keys-required.type'
export type { default as NIL } from './nil.type'
export type { default as Nullable } from './nullable.type'
export type { default as NullishBoolean } from './nullish-boolean.type'
export type { default as NullishNumber } from './nullish-number.type'
export type { default as NullishString } from './nullish-string.type'
export type { default as NumberString } from './number-string.type'
export type { default as Numeric } from './numeric.type'
export type { default as ObjectEmpty } from './object-empty.type'
export type { default as ObjectPlain } from './object-plain.type'
export type { default as ObjectUnknown } from './object-unknown.type'
export type { default as OmitByType } from './omit-by-type.type'
export type { default as OneOrMany } from './one-or-many.type'
export type { default as OrDeepPartial } from './or-deep-partial.type'
export type { default as OrNever } from './or-never.type'
export type { default as OrNil } from './or-nil.type'
export type { default as OrNull } from './or-null.type'
export type { default as OrPartial } from './or-partial.type'
export type { default as OrPromise } from './or-promise.type'
export type { default as OrUndefined } from './or-undefined.type'
export type { default as Overwrite } from './overwrite.type'
export type { default as PartialByRequired } from './partial-by-required.type'
export type { default as PartialBy } from './partial-by.type'
export type { default as PathN } from './path-n.type'
export type { default as PathNT } from './path-nt.type'
export type { default as PathValue } from './path-value.type'
export type { default as Path } from './path.type'
export type { default as PickByType } from './pick-by-type.type'
export type { default as Primitive } from './primitive.type'
export type { default as RegexString } from './regex-string.type'
export type { default as Split } from './split.type'
export type { default as TimestampUnix } from './timestamp-unix.type'
export type { default as UID } from './uid.type'
export type { default as Union } from './union.type'
export type { default as ANY } from './any'
export type { default as Booleanish } from './booleanish'
export type { default as BuiltIn } from './built-in'
export type { default as ClassConstructor } from './class-constructor'
export type { default as ComparisonOperator } from './comparison-operator'
export type { default as DeepOmit } from './deep-omit'
export type { default as DeepPartial } from './deep-partial'
export type { default as DeepPartialBy } from './deep-partial-by'
export type { default as DeepPartialByHelper } from './deep-partial-by-helper'
export type { default as DeepPartialByRequired } from './deep-partial-by-required'
export type { default as DeepPartialByRequiredHelper } from './deep-partial-by-required-helper'
export type { default as DeepPick } from './deep-pick'
export type { default as DeepRequired } from './deep-required'
export type { default as DocumentDeepPartial } from './document-deep-partial'
export type { default as DocumentPartial } from './document-partial'
export type { default as DUID } from './duid'
export type { default as EmptyString } from './empty-string'
export type { default as EmptyValue } from './empty-value'
export type { default as FIXME } from './fixme'
export type { default as IndexSignature } from './index-signature'
export type { default as Intersection } from './intersection'
export type { default as Join } from './join'
export type { default as JSONArray } from './json-array'
export type { default as JSONObject } from './json-object'
export type { default as JSONPrimitive } from './json-primitive'
export type { default as JSONValue } from './json-value'
export type { default as KeysOptional } from './keys-optional'
export type { default as KeysRequired } from './keys-required'
export type { default as NIL } from './nil'
export type { default as Nullable } from './nullable'
export type { default as NullishBoolean } from './nullish-boolean'
export type { default as NullishNumber } from './nullish-number'
export type { default as NullishString } from './nullish-string'
export type { default as NumberString } from './number-string'
export type { default as Numeric } from './numeric'
export type { default as ObjectEmpty } from './object-empty'
export type { default as ObjectPlain } from './object-plain'
export type { default as ObjectUnknown } from './object-unknown'
export type { default as OmitByType } from './omit-by-type'
export type { default as OneOrMany } from './one-or-many'
export type { default as OrDeepPartial } from './or-deep-partial'
export type { default as OrNever } from './or-never'
export type { default as OrNil } from './or-nil'
export type { default as OrNull } from './or-null'
export type { default as OrPartial } from './or-partial'
export type { default as OrPromise } from './or-promise'
export type { default as OrUndefined } from './or-undefined'
export type { default as Overwrite } from './overwrite'
export type { default as PartialBy } from './partial-by'
export type { default as PartialByRequired } from './partial-by-required'
export type { default as Path } from './path'
export type { default as PathN } from './path-n'
export type { default as PathNT } from './path-nt'
export type { default as PathValue } from './path-value'
export type { default as PickByType } from './pick-by-type'
export type { default as Primitive } from './primitive'
export type { default as RegexString } from './regex-string'
export type { default as Split } from './split'
export type { default as TimestampUnix } from './timestamp-unix'
export type { default as UID } from './uid'
export type { default as Union } from './union'
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @module tutils/types/Intersection
*/

import type ObjectPlain from './object-plain.type'
import type ObjectPlain from './object-plain'

/**
* Combine two types.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/types/join.type.ts → src/types/join.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @module tutils/types/Join
*/

import type IndexSignature from './index-signature.type'
import type IndexSignature from './index-signature'

/**
* Concatenates strings `String1` and `String2`.
Expand Down
2 changes: 1 addition & 1 deletion src/types/json-array.type.ts → src/types/json-array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @module tutils/types/JSONArray
*/

import type JSONValue from './json-value.type'
import type JSONValue from './json-value'

/**
* Type representing an array containing [JSON values][1].
Expand Down
2 changes: 1 addition & 1 deletion src/types/json-object.type.ts → src/types/json-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @module tutils/types/JSONObject
*/

import type JSONValue from './json-value.type'
import type JSONValue from './json-value'

/**
* Type representing a [JSON][1] object.
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/types/json-value.type.ts → src/types/json-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* @module tutils/types/JSONValue
*/

import type JSONArray from './json-array.type'
import type JSONObject from './json-object.type'
import type JSONPrimitive from './json-primitive.type'
import type JSONArray from './json-array'
import type JSONObject from './json-object'
import type JSONPrimitive from './json-primitive'

/**
* [JSON data types][1].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @module tutils/types/KeysOptional
*/

import type ObjectPlain from './object-plain.type'
import type ObjectPlain from './object-plain'

/**
* Creates a list of optional properties in `T`.
Expand Down
Loading

0 comments on commit b3207a6

Please sign in to comment.