* Update dependency del to v5 * unify del/rimraf usage with del v5 * update yarn.lock * update kbn-pm distributable * remove poorly transformed code * force some deletes from tmp * mock less of the fs module * force tmp deletion in a few more suites * please make this the last force |
||
---|---|---|
.. | ||
test-d | ||
index.ts | ||
package.json | ||
README.md | ||
tsconfig.json |
@kbn/utility-types
TypeScript utility types for usage in Kibana.
- This package re-exports a subset of the items in
utility-types
- You can also add more utility types here.
Usage
import { UnwrapPromise } from '@kbn/utility-types';
type A = Promise<string>;
type B = UnwrapPromise<A>; // string
Reference
UnwrapPromise<T>
— Returns wrapped type of a promise.UnwrapObservable<T>
— Returns wrapped type of an observable.ShallowPromise<T>
— Same asPromise
type, but it flat maps the wrapped type.ObservableLike<T>
— Minimal interface for an object resembling anObservable
.