zodbus 1.0.1 → 1.0.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/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export type SchemaPath<T, K extends keyof T = keyof T> = ZodTypePath<T, K> | Nam
|
|
|
14
14
|
export type WildcardPath<T extends string> = T extends `${infer L}.${infer R}` ? `${L}.${WildcardPath<R>}` | `${L}.*` | `*.${WildcardPath<R>}` : T | "*";
|
|
15
15
|
export type ExcludeDirectlyNestedKeys<T extends string> = T extends `${infer L}.${infer R}` ? L | ExcludeDirectlyNestedKeys<R> : never;
|
|
16
16
|
export type Subscription<T extends Schema> = {
|
|
17
|
-
[K in Exclude<WildcardPath<SchemaPath<T>>, ExcludeDirectlyNestedKeys<SchemaPath<T>>>]: {
|
|
17
|
+
[K in Exclude<WildcardPath<SchemaPath<T>>, ExcludeDirectlyNestedKeys<SchemaPath<T>>> | "*"]: {
|
|
18
18
|
listener: InferSubscriptionListener<T, K>;
|
|
19
19
|
payload: InferSubscriptionListenerPayload<T, K>;
|
|
20
20
|
};
|