]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
refactor: export internal types
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 31 Jan 2022 13:17:00 +0000 (14:17 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 31 Jan 2022 13:17:00 +0000 (14:17 +0100)
packages/pinia/api-extractor.json
packages/pinia/src/index.ts
packages/pinia/src/types.ts

index 9d27602f6e6084796dfc30b442144d6ac9074a5d..d3486484bfa52cbc7f0aa9b840d558cc193ceec1 100644 (file)
 
       "ae-missing-release-tag": {
         "logLevel": "none"
+      },
+
+      "ae-incompatible-release-tags": {
+        "logLevel": "none"
       }
     },
 
     "tsdocMessageReporting": {
       "default": {
         "logLevel": "warning"
+      },
+      "tsdoc-code-span-missing-delimiter": {
+        "logLevel": "none"
       }
     }
   }
index 58b1f4a7f39625e1ab6b49c9653aa788f6cf139a..9735ef37672c34b45b32986acfb899c72fbefdf7 100644 (file)
@@ -49,6 +49,7 @@ export type {
   _ExtractGettersFromSetupStore_Keys,
   _ExtractStateFromSetupStore_Keys,
   _UnwrapAll,
+  _Awaited,
 } from './types'
 export { MutationType } from './types'
 
index 0f8c8c850e7fba24993d883199b2205eada6dba1..78983cb0a63402930b8800c40ee02f3bef503074 100644 (file)
@@ -161,7 +161,7 @@ export type SubscriptionCallback<S> = (
 
 // to support TS 4.4
 // TODO: remove in 2.1.0, use Awaited, and up the peer dep to TS 4.5
-type _Awaited<T> = T extends null | undefined
+export type _Awaited<T> = T extends null | undefined
   ? T // special case for `null | undefined` when not in `--strictNullChecks` mode
   : T extends object & { then(onfulfilled: infer F): any } // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped
   ? F extends (value: infer V, ...args: any) => any // if the argument to `then` is callable, extracts the first argument