@enonic-types/lib-io
Advanced tools
Comparing version 7.11.0 to 7.11.1
14
io.d.ts
@@ -14,4 +14,4 @@ /** | ||
} | ||
import type { Resource } from '@enonic-types/core'; | ||
export type { Resource } from '@enonic-types/core'; | ||
import type { ByteSource, Resource } from '@enonic-types/core'; | ||
export type { ByteSource, Resource, } from '@enonic-types/core'; | ||
/** | ||
@@ -25,3 +25,3 @@ * Read text from a stream. | ||
*/ | ||
export declare function readText(stream: object): string; | ||
export declare function readText(stream: ByteSource): string; | ||
/** | ||
@@ -35,3 +35,3 @@ * Read lines from a stream. | ||
*/ | ||
export declare function readLines(stream: object): string[]; | ||
export declare function readLines(stream: ByteSource): string[]; | ||
/** | ||
@@ -45,3 +45,3 @@ * Process lines from a stream. | ||
*/ | ||
export declare function processLines(stream: object, func: (value: string) => object): void; | ||
export declare function processLines(stream: ByteSource, func: (value: string) => void): void; | ||
/** | ||
@@ -55,3 +55,3 @@ * Returns the size of a stream. | ||
*/ | ||
export declare function getSize(stream: object): number; | ||
export declare function getSize(stream: ByteSource): number; | ||
/** | ||
@@ -74,3 +74,3 @@ * Returns the mime-type from a name or extension. | ||
*/ | ||
export declare function newStream(text: string): object; | ||
export declare function newStream(text: string): ByteSource; | ||
/** | ||
@@ -77,0 +77,0 @@ * Looks up a resource. |
{ | ||
"name": "@enonic-types/lib-io", | ||
"version": "7.11.0", | ||
"version": "7.11.1", | ||
"description": "Type definitions for lib-io.", | ||
@@ -30,3 +30,3 @@ "types": "io.d.ts", | ||
"dependencies": { | ||
"@enonic-types/core": "7.11.0" | ||
"@enonic-types/core": "7.11.1" | ||
}, | ||
@@ -33,0 +33,0 @@ "publishConfig": { |
4377
+ Added@enonic-types/core@7.11.1(transitive)
- Removed@enonic-types/core@7.11.0(transitive)
Updated@enonic-types/core@7.11.1