mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
fix(@rdfjs/namespace): builder can be called without params (#41231)
This commit is contained in:
committed by
Andrew Branch
parent
97f91edc4d
commit
0d303e5ea8
Vendored
+1
-1
@@ -9,7 +9,7 @@ declare function namespace(baseIRI: string, options?: namespace.BuilderOptions):
|
||||
|
||||
declare namespace namespace {
|
||||
interface NamespaceBuilder {
|
||||
(property: TemplateStringsArray | string): NamedNode;
|
||||
(property?: TemplateStringsArray | string): NamedNode;
|
||||
|
||||
readonly [property: string]: NamedNode;
|
||||
}
|
||||
|
||||
@@ -14,3 +14,4 @@ const node3: NamedNode = builder1('Thing');
|
||||
const node4: NamedNode = builder1('url');
|
||||
const node5: NamedNode = builder1`'Thing'`;
|
||||
const node6: NamedNode = builder1`url`;
|
||||
const node7: NamedNode = builder1();
|
||||
|
||||
Reference in New Issue
Block a user