Added type definitions for rdflib 0.17 (#27847)

This commit is contained in:
Laurent Wouters
2018-08-03 14:30:38 -07:00
committed by Sheetal Nandi
parent ba1789ffaf
commit dfccb836de
4 changed files with 1210 additions and 0 deletions
+1169
View File
File diff suppressed because it is too large Load Diff
+17
View 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
View 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
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }