@lafken/common 0.14.0 → 0.14.2
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 +8 -6
- package/lib/types/utilities.types.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -338,13 +338,15 @@ The package provides augmentable interfaces that enable type-safe resource names
|
|
|
338
338
|
```typescript
|
|
339
339
|
// In your lafken-types.d.ts
|
|
340
340
|
declare module '@lafken/common' {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
341
|
+
// Resources defined in this application
|
|
342
|
+
interface SharedResourceNames {
|
|
343
|
+
dynamo: 'users-table';
|
|
344
|
+
queue: 'email-queue';
|
|
345
345
|
}
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
|
|
347
|
+
// Resources from external stacks referenced by this application
|
|
348
|
+
interface SharedReferenceResources {
|
|
349
|
+
dynamo: 'shared-table';
|
|
348
350
|
}
|
|
349
351
|
}
|
|
350
352
|
```
|
|
@@ -3,7 +3,7 @@ export type DeepPartial<T> = T extends object ? {
|
|
|
3
3
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
4
4
|
} : T;
|
|
5
5
|
export type OnlyNumberString<T> = {
|
|
6
|
-
[key in keyof T as NonNullable<T[key]> extends string | number ? key : never]: T[key];
|
|
6
|
+
[key in keyof T as NonNullable<T[key]> extends string | number | bigint ? key : never]: NonNullable<T[key]> extends BigInt ? bigint : T[key];
|
|
7
7
|
};
|
|
8
8
|
export type OnlyNumber<T> = {
|
|
9
9
|
[key in keyof T as NonNullable<T[key]> extends number ? key : never]: T[key];
|
package/package.json
CHANGED