type-fest 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +8 -2
  2. package/package.json +6 -5
  3. package/readme.md +7 -0
package/index.d.ts CHANGED
@@ -41,13 +41,19 @@ export type JsonObject = {[key: string]: JsonValue};
41
41
  /**
42
42
  Matches a JSON array.
43
43
  */
44
- export interface JsonArray extends Array<JsonValue> {} // eslint-disable-line @typescript-eslint/no-empty-interface
44
+ export interface JsonArray extends Array<JsonValue> {}
45
45
 
46
46
  /**
47
47
  Matches any valid JSON value.
48
48
  */
49
49
  export type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
50
50
 
51
+ declare global {
52
+ interface SymbolConstructor {
53
+ readonly observable: symbol;
54
+ }
55
+ }
56
+
51
57
  /**
52
58
  Matches a value that is like an [Observable](https://github.com/tc39/proposal-observable).
53
59
  */
@@ -72,7 +78,7 @@ type FooWithoutA = Omit<Foo, 'a'>;
72
78
  //=> {b: string};
73
79
  ```
74
80
 
75
- I'm surprised this one is not built-in. It seems [other people agree](https://github.com/Microsoft/TypeScript/issues/12215#issuecomment-420919470). Please open new issues on TypeScript about making it built-in.
81
+ I'm surprised this one is not built-in. It seems [other people agree](https://github.com/Microsoft/TypeScript/issues/12215#issuecomment-420919470). Please 👍 [this issue on TypeScript](https://github.com/Microsoft/TypeScript/issues/30455) about making it built-in.
76
82
  */
77
83
  export type Omit<ObjectType, KeysType extends keyof ObjectType> = Pick<ObjectType, Exclude<keyof ObjectType, KeysType>>;
78
84
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "type-fest",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A collection of essential TypeScript types",
5
5
  "license": "(MIT OR CC0-1.0)",
6
6
  "repository": "sindresorhus/type-fest",
@@ -13,7 +13,7 @@
13
13
  "node": ">=6"
14
14
  },
15
15
  "scripts": {
16
- "test": "xo && tsd-check"
16
+ "test": "xo && tsd"
17
17
  },
18
18
  "files": [
19
19
  "index.d.ts",
@@ -31,9 +31,10 @@
31
31
  "json"
32
32
  ],
33
33
  "devDependencies": {
34
- "@typescript-eslint/eslint-plugin": "^1.4.2",
35
- "eslint-config-xo-typescript": "^0.8.0",
36
- "tsd-check": "^0.5.0",
34
+ "@sindresorhus/tsconfig": "^0.3.0",
35
+ "@typescript-eslint/eslint-plugin": "^1.5.0",
36
+ "eslint-config-xo-typescript": "^0.9.0",
37
+ "tsd": "^0.7.2",
37
38
  "xo": "^0.24.0"
38
39
  },
39
40
  "xo": {
package/readme.md CHANGED
@@ -100,6 +100,13 @@ There are many advanced types most users don't know about.
100
100
  You can find some examples in the [TypeScript docs](https://www.typescriptlang.org/docs/handbook/advanced-types.html#predefined-conditional-types).
101
101
 
102
102
 
103
+ ## Maintainers
104
+
105
+ - [Sindre Sorhus](https://github.com/sindresorhus)
106
+ - [Jarek Radosz](https://github.com/CvX)
107
+ - [Dimitri Benin](https://github.com/BendingBender)
108
+
109
+
103
110
  ## License
104
111
 
105
112
  (MIT OR CC0-1.0)