@stryke/types 0.9.1 → 0.10.0
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/dist/base.d.ts +2 -2
- package/dist/file.d.ts +23 -0
- package/package.json +2 -2
package/dist/base.d.ts
CHANGED
|
@@ -238,7 +238,7 @@ export type IsFunction<T> = T extends AnyFunction ? true : false;
|
|
|
238
238
|
*
|
|
239
239
|
* @example
|
|
240
240
|
* ```
|
|
241
|
-
* import type {GlobalThis} from '
|
|
241
|
+
* import type { GlobalThis } from '@stryke/types';
|
|
242
242
|
*
|
|
243
243
|
* type ExtraGlobals = GlobalThis & {
|
|
244
244
|
* readonly GLOBAL_TOKEN: string;
|
|
@@ -309,7 +309,7 @@ type StructuredCloneableCollection = readonly StructuredCloneable[] | {
|
|
|
309
309
|
*
|
|
310
310
|
* @example
|
|
311
311
|
* ```
|
|
312
|
-
* import type {StructuredCloneable} from '
|
|
312
|
+
* import type { StructuredCloneable } from '@stryke/types';
|
|
313
313
|
*
|
|
314
314
|
* class CustomClass {}
|
|
315
315
|
*
|
package/dist/file.d.ts
CHANGED
|
@@ -21,3 +21,26 @@ export type FileResult = {
|
|
|
21
21
|
* A valid `picomatch` glob pattern, or array of patterns.
|
|
22
22
|
*/
|
|
23
23
|
export type FilterPattern = ReadonlyArray<string | RegExp> | string | RegExp | null;
|
|
24
|
+
export interface FileInputOutput {
|
|
25
|
+
input: string;
|
|
26
|
+
output: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* An interface got representing an asset files with glob patterns.
|
|
30
|
+
*/
|
|
31
|
+
export type AssetGlob = Required<Omit<FileInputOutput, "input">> & Partial<Pick<FileInputOutput, "input">> & {
|
|
32
|
+
/**
|
|
33
|
+
* A glob pattern to match files.
|
|
34
|
+
*/
|
|
35
|
+
glob: string;
|
|
36
|
+
/**
|
|
37
|
+
* An array of glob patterns to ignore files.
|
|
38
|
+
*/
|
|
39
|
+
ignore?: string[];
|
|
40
|
+
/**
|
|
41
|
+
* Include `.dot` files in normal matches and `globstar` matches. Note that an explicit dot in a portion of the pattern will always match dot files.
|
|
42
|
+
*
|
|
43
|
+
* @defaultValue true
|
|
44
|
+
*/
|
|
45
|
+
dot?: boolean;
|
|
46
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing many base TypeScript type definitions that are shared across many projects.",
|
|
6
6
|
"repository": {
|
|
@@ -292,5 +292,5 @@
|
|
|
292
292
|
"main": "./dist/index.cjs",
|
|
293
293
|
"module": "./dist/index.mjs",
|
|
294
294
|
"types": "./dist/index.d.ts",
|
|
295
|
-
"gitHead": "
|
|
295
|
+
"gitHead": "94f9ab344bbcf12dcd34aa8eed21e300ce7edafd"
|
|
296
296
|
}
|