mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Use declarations style for functions.
This commit is contained in:
@@ -12,9 +12,9 @@ export type MetadataOverrideValue = NamedNode | Literal | string | (NamedNode |
|
||||
/**
|
||||
* Determines whether the object is a `RepresentationMetadata`.
|
||||
*/
|
||||
export const isRepresentationMetadata = function(object: any): object is RepresentationMetadata {
|
||||
export function isRepresentationMetadata(object: any): object is RepresentationMetadata {
|
||||
return typeof object?.setMetadata === 'function';
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Stores the metadata triples and provides methods for easy access.
|
||||
|
||||
@@ -11,6 +11,6 @@ export interface ResourceIdentifier {
|
||||
/**
|
||||
* Determines whether the object is a `ResourceIdentifier`.
|
||||
*/
|
||||
export const isResourceIdentifier = function(object: any): object is ResourceIdentifier {
|
||||
export function isResourceIdentifier(object: any): object is ResourceIdentifier {
|
||||
return object && (typeof object.path === 'string');
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user