File tree Expand file tree Collapse file tree 4 files changed +0
-40
lines changed Expand file tree Collapse file tree 4 files changed +0
-40
lines changed Original file line number Diff line number Diff line change 1
1
import { isLocalRef } from '@stoplight/json' ;
2
2
3
3
import { unwrapStringOrNull } from '../accessors/unwrap' ;
4
- import { isReferenceNode , isSchemaNode } from '../guards' ;
5
4
import type { SchemaFragment } from '../types' ;
6
5
import { BaseNode } from './BaseNode' ;
7
6
@@ -17,8 +16,4 @@ export class ReferenceNode extends BaseNode {
17
16
public get external ( ) {
18
17
return this . value !== null && ! isLocalRef ( this . value ) ;
19
18
}
20
-
21
- static [ Symbol . hasInstance ] ( instance : unknown ) {
22
- return isSchemaNode ( instance ) && isReferenceNode ( instance ) ;
23
- }
24
19
}
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { getTypes } from '../accessors/getTypes';
8
8
import { getValidations } from '../accessors/getValidations' ;
9
9
import { isDeprecated } from '../accessors/isDeprecated' ;
10
10
import { unwrapArrayOrNull , unwrapStringOrNull } from '../accessors/unwrap' ;
11
- import { isRegularNode , isSchemaNode } from '../guards' ;
12
11
import type { SchemaFragment } from '../types' ;
13
12
import { BaseNode } from './BaseNode' ;
14
13
import type { ReferenceNode } from './ReferenceNode' ;
@@ -66,8 +65,4 @@ export class RegularNode extends BaseNode {
66
65
Object . keys ( this . annotations ) . length + Object . keys ( this . validations ) . length === 0
67
66
) ;
68
67
}
69
-
70
- static [ Symbol . hasInstance ] ( instance : unknown ) {
71
- return isSchemaNode ( instance ) && isRegularNode ( instance ) ;
72
- }
73
68
}
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments