mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-10 09:40:21 +08:00
Added type definitions for rdflib 0.17 (#27847)
This commit is contained in:
committed by
Sheetal Nandi
parent
ba1789ffaf
commit
dfccb836de
1169
types/rdflib/index.d.ts
vendored
Normal file
1169
types/rdflib/index.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
17
types/rdflib/rdflib-tests.ts
Normal file
17
types/rdflib/rdflib-tests.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import * as $rdf from "rdflib";
|
||||
|
||||
const store = $rdf.graph();
|
||||
$rdf.parse(
|
||||
"some inline rdf data",
|
||||
store,
|
||||
"http://example.com",
|
||||
"text/n3",
|
||||
(x, y) => {}
|
||||
);
|
||||
const node = store.any(
|
||||
$rdf.sym("http://example.com/subject"),
|
||||
$rdf.sym("http://example.com/property"),
|
||||
undefined,
|
||||
undefined
|
||||
);
|
||||
const value = node.value;
|
||||
23
types/rdflib/tsconfig.json
Normal file
23
types/rdflib/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"rdflib-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/rdflib/tslint.json
Normal file
1
types/rdflib/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user