@player-tools/xlr 0.2.1-next.4 → 0.2.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/dist/index.d.ts CHANGED
@@ -74,6 +74,8 @@ interface RefNode extends TypeNode<'ref'> {
74
74
  ref: string;
75
75
  /** Parameters to potentially fill in a generic when it is resolved. Position is preserved */
76
76
  genericArguments?: Array<NodeType>;
77
+ /** Optional property to access when the reference is resolved */
78
+ property?: string;
77
79
  }
78
80
  declare type RefType = RefNode & Annotations;
79
81
  interface ObjectProperty {
@@ -191,7 +193,7 @@ declare type NodeTypeWithGenerics<T extends NodeType = NodeType> = T & {
191
193
  genericTokens: Array<ParamTypeNode>;
192
194
  };
193
195
 
194
- declare type TransformFunction = (input: NamedType<NodeType> | NodeType, capabilityType: string) => void;
196
+ declare type TransformFunction = (input: NamedType<NodeType> | NodeType, capabilityType: string) => NamedType | NodeType;
195
197
  interface Capability {
196
198
  /** Name of the capability that is provided to Player */
197
199
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@player-tools/xlr",
3
- "version": "0.2.1-next.4",
3
+ "version": "0.2.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"
package/src/core.ts CHANGED
@@ -90,6 +90,8 @@ export interface RefNode extends TypeNode<'ref'> {
90
90
  ref: string;
91
91
  /** Parameters to potentially fill in a generic when it is resolved. Position is preserved */
92
92
  genericArguments?: Array<NodeType>;
93
+ /** Optional property to access when the reference is resolved */
94
+ property?: string;
93
95
  }
94
96
  export type RefType = RefNode & Annotations;
95
97
 
package/src/utility.ts CHANGED
@@ -3,7 +3,7 @@ import type { NamedType, NodeType } from '.';
3
3
  export type TransformFunction = (
4
4
  input: NamedType<NodeType> | NodeType,
5
5
  capabilityType: string
6
- ) => void;
6
+ ) => NamedType | NodeType;
7
7
 
8
8
  export interface Capability {
9
9
  /** Name of the capability that is provided to Player */