@stryke/types 0.7.4 → 0.8.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.
package/README.md CHANGED
@@ -22,7 +22,7 @@ This package is part of Storm Software's **đŸŒŠī¸ Stryke** monorepo. Stryke pac
22
22
 
23
23
  <h3 align="center">đŸ’ģ Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
24
24
 
25
- [![Version](https://img.shields.io/badge/version-0.7.2-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/stryke/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
+ [![Version](https://img.shields.io/badge/version-0.8.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/stryke/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
26
26
 
27
27
  > [!IMPORTANT] This repository, and the apps, libraries, and tools contained
28
28
  > within, is still in it's initial development phase. As a result, bugs and
@@ -51,6 +51,7 @@ across many projects.
51
51
 
52
52
  <!-- START doctoc -->
53
53
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
54
+
54
55
  ## Table of Contents
55
56
 
56
57
  - [Installing](#installing)
package/dist/async.d.ts CHANGED
@@ -10,6 +10,18 @@ import type { FunctionLike, IsUnknown } from "./base";
10
10
  * ```
11
11
  */
12
12
  export type Awaitable<T> = T | PromiseLike<T>;
13
+ /**
14
+ * A type that can be either a value or a function that returns a value.
15
+ *
16
+ * @example
17
+ * ```
18
+ * import type {Resolvable} from 'type-fest';
19
+ *
20
+ * const foo: Resolvable<string> = 'bar';
21
+ * const bar: Resolvable<string> = () => 'baz';
22
+ * ```
23
+ */
24
+ export type Resolvable<T> = Awaitable<T> | (() => Awaitable<T>);
13
25
  /**
14
26
  * Create a function type with a return type of your choice and the same parameters as the given function type.
15
27
  *
package/dist/base.d.ts CHANGED
@@ -70,10 +70,30 @@ export type Any = boolean | number | bigint | string | null | undefined | void |
70
70
  * The valid types of the index for an `Indexable` type object
71
71
  */
72
72
  export type IndexType = string | number | symbol;
73
+ /**
74
+ * The declaration of a ***dictionary-type*** object with a specific type
75
+ *
76
+ * @see {@link Indexable}
77
+ * @see {@link IndexType}
78
+ * @see {@link Dictionary}
79
+ */
80
+ export type TypedIndexable<T> = Record<IndexType, T>;
73
81
  /**
74
82
  * The declaration of a ***dictionary-type*** object
83
+ *
84
+ * @see {@link TypedIndexable}
85
+ * @see {@link IndexType}
86
+ * @see {@link Dictionary}
87
+ */
88
+ export type Indexable = TypedIndexable<any>;
89
+ /**
90
+ * The declaration of a ***dictionary-type*** object with a specific type
91
+ *
92
+ * @see {@link Indexable}
93
+ * @see {@link IndexType}
94
+ * @see {@link TypedIndexable}
75
95
  */
76
- export type Indexable = Record<IndexType, any>;
96
+ export type Dictionary<T> = Record<string, T>;
77
97
  export declare const EMPTY_STRING = "";
78
98
  export declare const NEWLINE_STRING = "\r\n";
79
99
  export declare const EMPTY_OBJECT: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/types",
3
- "version": "0.7.4",
3
+ "version": "0.8.1",
4
4
  "type": "module",
5
5
  "description": "A package containing many base TypeScript type definitions that are shared across many projects.",
6
6
  "repository": {