Skip to content

Commit b0fe637

Browse files
committed
fix: import @unblocked-web/js-path
1 parent f202a19 commit b0fe637

22 files changed

Lines changed: 40 additions & 77 deletions

builds/awaited-dom/base/AwaitedHandler.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Constructable from './Constructable';
2-
import INodePointer from './INodePointer';
2+
import { INodePointer } from '@unblocked-web/js-path';
33
export declare class NotImplementedError extends Error {
44
}
55
export default class AwaitedHandler<TClass> {

builds/awaited-dom/base/AwaitedIterator.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builds/awaited-dom/base/AwaitedIterator.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
1+
import { IJsPath } from '@unblocked-web/js-path';
12
export default class AwaitedPath {
23
readonly hasNodeId: boolean;
34
private readonly jsPath;
45
parent: object | null;
56
constructor(parent: object | null, ...jsPath: IJsPath);
6-
addProperty(parent: object | null, name: IPropertyName): AwaitedPath;
7-
addMethod(parent: object | null, name: IMethodName, ...args: IMethodArgs): AwaitedPath;
8-
withNodeId(parent: object | null, id: INodeId): AwaitedPath;
7+
addProperty(parent: object | null, name: string): AwaitedPath;
8+
addMethod(parent: object | null, name: string, ...args: any[]): AwaitedPath;
9+
withNodeId(parent: object | null, id: number): AwaitedPath;
910
toJSON(): IJsPath;
1011
static createFromString(parent: object | null, path: string): AwaitedPath;
1112
}
12-
export declare type IJsPath = IPathStep[];
13-
export declare type IPathStep = IPropertyName | IMethod | INodeId;
14-
declare type IPropertyName = string;
15-
declare type IMethod = [IMethodName, ...IMethodArgs];
16-
declare type IMethodName = string;
17-
declare type IMethodArgs = any[];
18-
declare type INodeId = number;
19-
export {};

builds/awaited-dom/base/AwaitedPath.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builds/awaited-dom/base/INodePointer.d.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

builds/awaited-dom/base/INodePointer.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

builds/awaited-dom/base/INodePointer.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

builds/awaited-dom/base/NodeFactory.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import AwaitedPath from './AwaitedPath';
22
import AwaitedHandler from './AwaitedHandler';
3-
import INodePointer from './INodePointer';
3+
import { INodePointer } from '@unblocked-web/js-path';
44
export default class NodeFactory<TClass> {
55
static instanceCreatorsByName: any;
66
private readonly getState;

builds/awaited-dom/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "awaited-dom",
3-
"version": "1.3.2",
3+
"version": "1.4.0",
44
"description": "Library for converting WebIDLs to Typescript interfaces and classes",
55
"homepage": "https://github.com/ulixee/noderdom",
66
"author": "Data Liberation Foundation",
@@ -19,7 +19,9 @@
1919
"XMLSerializer",
2020
"AwaitedDOM"
2121
],
22-
"dependencies": {},
22+
"dependencies": {
23+
"@unblocked-web/js-path": "2.0.0-alpha.1"
24+
},
2325
"repository": {
2426
"type": "git",
2527
"url": "git://github.com/ulixee/noderdom"

0 commit comments

Comments
 (0)