Skip to content

Commit 23ccefd

Browse files
authored
Merge pull request #97 from wmde/addTRTypes
Add some typescript definitions
2 parents f8bca76 + 21689b6 commit 23ccefd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

index.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
export class Claim {
2+
getGuid(): string;
3+
getMainSnak(): Snak;
4+
}
5+
6+
export class Snak {
7+
equals( snak: Snak ): boolean;
8+
}
9+
10+
export class Statement {
11+
getClaim(): Claim;
12+
getReferences(): ReferenceList;
13+
}
14+
15+
class ReferenceList {
16+
equals( referenceList: ReferenceList ): boolean;
17+
isEmpty(): boolean;
18+
}

0 commit comments

Comments
 (0)