1.0.4 • Published 6 months ago

@types/resolve-value v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/resolve-value

Summary

This package contains type definitions for resolve-value (https://github.com/jonschlinkert/resolve-value#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/resolve-value.

index.d.ts

// Type definitions for resolve-value 1.0
// Project: https://github.com/jonschlinkert/resolve-value#readme
// Definitions by: Rajas Paranjpe <https://github.com/ChocolateLoverRaj>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 4.1

type DeepResolved<T> =
  T extends PromiseLike<infer R>
    ? DeepResolved<R>
    : T extends object
      ? {
        [K in keyof T]: DeepResolved<T[K]>
      }
      : T;

declare function resolveValue<T>(boolean: T): Promise<DeepResolved<T>>;

export = resolveValue;

Additional Details

  • Last updated: Mon, 28 Mar 2022 03:01:51 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Rajas Paranjpe.