feat: Expose UriUtil.

This commit is contained in:
Ruben Verborgh 2021-01-02 19:58:39 +01:00
parent feaac1cf56
commit 882c0fdba5
2 changed files with 2 additions and 1 deletions

View File

@ -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';

View File

@ -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));