@enonic/mock-xp
Version:
Mock Enonic XP API JavaScript Library
16 lines (15 loc) • 440 B
TypeScript
import type { ByteSource, Resource as ResourceInterface } from '@enonic-types/core';
import { App } from '../App';
export declare class Resource implements ResourceInterface {
private readonly app;
readonly path: string;
constructor({ app, path, }: {
app: App;
path: string;
});
exists(): boolean;
getSize(): number;
getStream(): ByteSource;
getTimestamp(): number;
readText(): string;
}