Skip to content

Commit

Permalink
Fix type issues with ontolgies
Browse files Browse the repository at this point in the history
  • Loading branch information
Polleps committed Apr 30, 2024
1 parent 78ed99e commit 4f5734f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 0 additions & 2 deletions browser/lib/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ import { initOntologies } from './ontologies/index.js';

initOntologies();

const __INTERNAL_KNOWN_SUBJECTS = new Set<string>();

export * from './ontologies/core.js';
export * from './ontologies/collections.js';
export * from './ontologies/commits.js';
Expand Down
4 changes: 1 addition & 3 deletions browser/lib/src/ontology.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,10 @@ type PropsOfClass<C extends keyof Classes> = {
*/
export type InferTypeOfValueInTriple<
Class extends keyof Classes | never = never,
Prop extends string = string,
Prop = string,
Returns = Prop extends keyof PropTypeMapping
? Prop extends Requires<Class>
? PropTypeMapping[Prop]
: Prop extends Recommends<Class>
? PropTypeMapping[Prop] | undefined
: PropTypeMapping[Prop] | undefined
: JSONValue,
> = Returns;
Expand Down
2 changes: 2 additions & 0 deletions browser/lib/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"composite": true,
"outDir": "./dist",
"rootDir": ".",
"module": "NodeNext",
"moduleResolution": "NodeNext",
},
"include": [
"./src"
Expand Down
3 changes: 2 additions & 1 deletion browser/react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"DOM"
],
"rootDir": ".",
"jsx": "react"
"jsx": "react",
"module": "NodeNext"
},
"include": [
"./src"
Expand Down

0 comments on commit 4f5734f

Please sign in to comment.