mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Expose UriUtil.
This commit is contained in:
parent
feaac1cf56
commit
882c0fdba5
@ -201,3 +201,4 @@ export * from './util/SequenceHandler';
|
|||||||
export * from './util/StreamUtil';
|
export * from './util/StreamUtil';
|
||||||
export * from './util/WaterfallHandler';
|
export * from './util/WaterfallHandler';
|
||||||
export * from './util/UriConstants';
|
export * from './util/UriConstants';
|
||||||
|
export * from './util/UriUtil';
|
||||||
|
@ -63,5 +63,5 @@ export const toObjectTerm = <T extends Term>(object: T | string, preferLiteral =
|
|||||||
* @param object - Object value.
|
* @param object - Object value.
|
||||||
* @param dataType - Object data type (as string).
|
* @param dataType - Object data type (as string).
|
||||||
*/
|
*/
|
||||||
export const toLiteral = (object: string | number, dataType: string): Literal =>
|
export const toLiteral = (object: string | number, dataType: string | NamedNode): Literal =>
|
||||||
DataFactory.literal(object, toCachedNamedNode(dataType));
|
DataFactory.literal(object, toCachedNamedNode(dataType));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user