Skip to content

Commit

Permalink
prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Tilsch committed Feb 11, 2024
1 parent 6597d99 commit 41c0f0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import namespace from "@rdfjs/namespace";
import {GenJSONLDSemanticPropertiesFunction} from "../state/stubHelper";
import { GenJSONLDSemanticPropertiesFunction } from "../state/stubHelper";

export const sladb = namespace("http://ontologies.slub-dresden.de/exhibition#");
export const slent = namespace(
Expand Down
4 changes: 3 additions & 1 deletion apps/exhibition-live/components/state/stubHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { JSONSchema7, JSONSchema7Definition } from "json-schema";
import isObject from "lodash/isObject";

export type GenRequiredPropertiesFunction = (modelName: string) => string[];
export type GenJSONLDSemanticPropertiesFunction = (modelName: string) => JSONSchema7["properties"];
export type GenJSONLDSemanticPropertiesFunction = (
modelName: string,
) => JSONSchema7["properties"];
const filterForPrimitiveProperties = (properties: JSONSchema7["properties"]) =>
Object.fromEntries(
Object.entries(properties || {}).filter(
Expand Down

0 comments on commit 41c0f0d

Please sign in to comment.