Skip to content

Commit

Permalink
fix(types): remove global Util namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Tomsia authored and Tomisiak committed Jun 17, 2020
1 parent 5edea65 commit ab3b8f9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/jsonApiResource.builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { JsonApiLinksBuilder } from './jsonApiLinks.builder';
import { JsonApiRelationship } from './jsonApiRelationship.interface';
import { JsonApiRelationshipBuilder } from './jsonApiRelationship.builder';
import { JsonApiResource, JsonApiResourceLinks } from './jsonApiResource.interface';
import * as Util from './util.types';

export class JsonApiResourceBuilder<T extends Partial<JsonApiResource> = {}> extends JsonApiIdentifierBuilder<T> {
public withId<U extends string>(id: U): JsonApiResourceBuilder<T & { id: U }> {
Expand Down
1 change: 1 addition & 0 deletions src/util.types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type Diff<T, U> = T extends U ? never : T;
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@
"skipLibCheck": true,
"resolveJsonModule": true,
"strict": true,
"esModuleInterop": true
"esModuleInterop": true,
},
"include": [
"./src/**/*",
"./types/global.d.ts"
"./src/**/*"
],
"exclude": [
"node_modules",
Expand Down
3 changes: 0 additions & 3 deletions types/global.d.ts

This file was deleted.

0 comments on commit ab3b8f9

Please sign in to comment.