Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update deps #695

Merged
merged 1 commit into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 25 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,43 @@
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": [],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["deprecation", "import", "simple-import-sort"],
"rules": {
"@typescript-eslint/array-type": [
"warn",
{
"default": "generic",
"readonly": "generic"
}
],
"@typescript-eslint/prefer-readonly": "warn",
"@typescript-eslint/member-delimiter-style": 0,
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-interface": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/prefer-as-const": "off",
"prefer-rest-params": "off",
"prefer-spread": "off"
"prefer-spread": "off",
"deprecation/deprecation": "off",
"import/first": "error",
"import/no-cycle": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"import/no-unresolved": "off",
"import/order": "off",
"simple-import-sort/imports": "error"
}
}
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [16.17.1]

steps:
- uses: actions/checkout@v2
Expand Down
10 changes: 8 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"typescript.tsdk": "./node_modules/typescript/lib"
}
"typescript.tsdk": "./node_modules/typescript/lib",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.validate": ["typescript"],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"files.insertFinalNewline": true
}
23 changes: 13 additions & 10 deletions docs/modules/Decoder.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ Added in v2.2.7
**Signature**

```ts
export declare const nullable: <I, A>(or: Decoder<I, A>) => Decoder<I, A>
export declare const nullable: <I, A>(or: Decoder<I, A>) => Decoder<I | null, A | null>
```

Added in v2.2.7
Expand All @@ -324,9 +324,10 @@ Added in v2.2.7
**Signature**

```ts
export declare const partial: <A>(
properties: { [K in keyof A]: Decoder<unknown, A[K]> }
) => Decoder<unknown, Partial<{ [K in keyof A]: A[K] }>>
export declare const partial: <A>(properties: { [K in keyof A]: Decoder<unknown, A[K]> }) => Decoder<
unknown,
Partial<{ [K in keyof A]: A[K] }>
>
```

Added in v2.2.7
Expand Down Expand Up @@ -369,9 +370,10 @@ Added in v2.2.7
**Signature**

```ts
export declare const struct: <A>(
properties: { [K in keyof A]: Decoder<unknown, A[K]> }
) => Decoder<unknown, { [K in keyof A]: A[K] }>
export declare const struct: <A>(properties: { [K in keyof A]: Decoder<unknown, A[K]> }) => Decoder<
unknown,
{ [K in keyof A]: A[K] }
>
```

Added in v2.2.15
Expand Down Expand Up @@ -445,9 +447,10 @@ Use `struct` instead.
**Signature**

```ts
export declare const type: <A>(
properties: { [K in keyof A]: Decoder<unknown, A[K]> }
) => Decoder<unknown, { [K in keyof A]: A[K] }>
export declare const type: <A>(properties: { [K in keyof A]: Decoder<unknown, A[K]> }) => Decoder<
unknown,
{ [K in keyof A]: A[K] }
>
```

Added in v2.2.7
Expand Down
23 changes: 13 additions & 10 deletions docs/modules/Guard.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Added in v2.2.0
**Signature**

```ts
export declare const nullable: <I, A extends I>(or: Guard<I, A>) => Guard<I, A>
export declare const nullable: <I, A extends I>(or: Guard<I, A>) => Guard<I | null, A | null>
```

Added in v2.2.0
Expand All @@ -137,9 +137,10 @@ Added in v2.2.0
**Signature**

```ts
export declare const partial: <A>(
properties: { [K in keyof A]: Guard<unknown, A[K]> }
) => Guard<unknown, Partial<{ [K in keyof A]: A[K] }>>
export declare const partial: <A>(properties: { [K in keyof A]: Guard<unknown, A[K]> }) => Guard<
unknown,
Partial<{ [K in keyof A]: A[K] }>
>
```

Added in v2.2.0
Expand Down Expand Up @@ -181,9 +182,10 @@ Added in v2.2.0
**Signature**

```ts
export declare const struct: <A>(
properties: { [K in keyof A]: Guard<unknown, A[K]> }
) => Guard<unknown, { [K in keyof A]: A[K] }>
export declare const struct: <A>(properties: { [K in keyof A]: Guard<unknown, A[K]> }) => Guard<
unknown,
{ [K in keyof A]: A[K] }
>
```

Added in v2.2.15
Expand Down Expand Up @@ -241,9 +243,10 @@ Use `struct` instead.
**Signature**

```ts
export declare const type: <A>(
properties: { [K in keyof A]: Guard<unknown, A[K]> }
) => Guard<unknown, { [K in keyof A]: A[K] }>
export declare const type: <A>(properties: { [K in keyof A]: Guard<unknown, A[K]> }) => Guard<
unknown,
{ [K in keyof A]: A[K] }
>
```

Added in v2.2.0
Expand Down
8 changes: 5 additions & 3 deletions docs/modules/Schemable.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,11 @@ export interface Schemable2C<S extends URIS2, E> {
/** @deprecated */
readonly type: <A>(properties: { [K in keyof A]: Kind2<S, E, A[K]> }) => Kind2<S, E, { [K in keyof A]: A[K] }>
readonly struct: <A>(properties: { [K in keyof A]: Kind2<S, E, A[K]> }) => Kind2<S, E, { [K in keyof A]: A[K] }>
readonly partial: <A>(
properties: { [K in keyof A]: Kind2<S, E, A[K]> }
) => Kind2<S, E, Partial<{ [K in keyof A]: A[K] }>>
readonly partial: <A>(properties: { [K in keyof A]: Kind2<S, E, A[K]> }) => Kind2<
S,
E,
Partial<{ [K in keyof A]: A[K] }>
>
readonly record: <A>(codomain: Kind2<S, E, A>) => Kind2<S, E, Record<string, A>>
readonly array: <A>(item: Kind2<S, E, A>) => Kind2<S, E, Array<A>>
readonly tuple: <A extends ReadonlyArray<unknown>>(
Expand Down
23 changes: 13 additions & 10 deletions docs/modules/TaskDecoder.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ Added in v2.2.7
**Signature**

```ts
export declare const nullable: <I, A>(or: TaskDecoder<I, A>) => TaskDecoder<I, A>
export declare const nullable: <I, A>(or: TaskDecoder<I, A>) => TaskDecoder<I | null, A | null>
```

Added in v2.2.7
Expand All @@ -327,9 +327,10 @@ Added in v2.2.7
**Signature**

```ts
export declare const partial: <A>(
properties: { [K in keyof A]: TaskDecoder<unknown, A[K]> }
) => TaskDecoder<unknown, Partial<{ [K in keyof A]: A[K] }>>
export declare const partial: <A>(properties: { [K in keyof A]: TaskDecoder<unknown, A[K]> }) => TaskDecoder<
unknown,
Partial<{ [K in keyof A]: A[K] }>
>
```

Added in v2.2.7
Expand Down Expand Up @@ -372,9 +373,10 @@ Added in v2.2.7
**Signature**

```ts
export declare const struct: <A>(
properties: { [K in keyof A]: TaskDecoder<unknown, A[K]> }
) => TaskDecoder<unknown, { [K in keyof A]: A[K] }>
export declare const struct: <A>(properties: { [K in keyof A]: TaskDecoder<unknown, A[K]> }) => TaskDecoder<
unknown,
{ [K in keyof A]: A[K] }
>
```

Added in v2.2.15
Expand Down Expand Up @@ -448,9 +450,10 @@ Use `struct` instead.
**Signature**

```ts
export declare const type: <A>(
properties: { [K in keyof A]: TaskDecoder<unknown, A[K]> }
) => TaskDecoder<unknown, { [K in keyof A]: A[K] }>
export declare const type: <A>(properties: { [K in keyof A]: TaskDecoder<unknown, A[K]> }) => TaskDecoder<
unknown,
{ [K in keyof A]: A[K] }
>
```

Added in v2.2.7
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Type.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Added in v2.2.3
**Signature**

```ts
export declare const nullable: <A>(or: Type<A>) => Type<A>
export declare const nullable: <A>(or: Type<A>) => Type<A | null>
```

Added in v2.2.3
Expand Down
15 changes: 8 additions & 7 deletions docs/modules/index.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ Added in v1.0.0
**Signature**

```ts
export declare const failure: <T>(value: unknown, context: Context, message?: string) => Either<Errors, T>
export declare const failure: <T>(value: unknown, context: Context, message?: string | undefined) => Either<Errors, T>
```

Added in v1.0.0
Expand Down Expand Up @@ -609,7 +609,7 @@ Strips additional properties, equivalent to `exact(type(props))`.
**Signature**

```ts
export declare const strict: <P extends Props>(props: P, name?: string) => ExactC<TypeC<P>>
export declare const strict: <P extends Props>(props: P, name?: string | undefined) => ExactC<TypeC<P>>
```

Added in v1.0.0
Expand Down Expand Up @@ -2277,8 +2277,9 @@ Added in v1.4.2
**Signature**

```ts
export type Exact<T, X extends T> = T &
{ [K in ({ [K in keyof X]: K } & { [K in keyof T]: never } & { [key: string]: never })[keyof X]]?: never }
export type Exact<T, X extends T> = T & {
[K in ({ [K in keyof X]: K } & { [K in keyof T]: never } & { [key: string]: never })[keyof X]]?: never
}
```

Added in v1.1.0
Expand Down Expand Up @@ -2330,7 +2331,7 @@ Added in v1.0.0
**Signature**

```ts
export interface StrictC<P extends Props> // tslint:disable-next-line: deprecation
export interface StrictC<P extends Props> // tslint:disable-next-line: deprecation
extends StrictType<P, { [K in keyof P]: TypeOf<P[K]> }, { [K in keyof P]: OutputOf<P[K]> }, unknown> {}
```

Expand Down Expand Up @@ -2422,7 +2423,7 @@ Added in v1.3.0
**Signature**

```ts
export interface TaggedIntersection<Tag extends string, A, O = A> // tslint:disable-next-line: deprecation
export interface TaggedIntersection<Tag extends string, A, O = A> // tslint:disable-next-line: deprecation
extends IntersectionType<TaggedIntersectionArgument<Tag>, A, O> {}
```

Expand Down Expand Up @@ -2453,7 +2454,7 @@ Added in v1.3.0
**Signature**

```ts
export interface TaggedUnionC<Tag extends string, CS extends [Mixed, Mixed, ...Array<Mixed>]> // tslint:disable-next-line: deprecation
export interface TaggedUnionC<Tag extends string, CS extends [Mixed, Mixed, ...Array<Mixed>]> // tslint:disable-next-line: deprecation
extends TaggedUnionType<Tag, CS, TypeOf<CS[number]>, OutputOf<CS[number]>, unknown> {}
```

Expand Down
2 changes: 1 addition & 1 deletion dtslint/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// TypeScript Version: 3.5
// TypeScript Version: 3.9
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion dtslint/ts3.5/tsconfig.json → dtslint/ts3.9/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"target": "es5",
"lib": ["es2015"]
"lib": ["es2015"],
"skipLibCheck": true
}
}
File renamed without changes.