Added type definitions for rdflib 0.17 (#27847)

This commit is contained in:
Laurent Wouters
2018-08-03 23:30:38 +02:00
committed by Sheetal Nandi
parent ba1789ffaf
commit dfccb836de
4 changed files with 1210 additions and 0 deletions

1169
types/rdflib/index.d.ts vendored Normal file

File diff suppressed because it is too large Load Diff

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;

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
types/rdflib/tslint.json Normal file
View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }