mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Remove unused interfaces
This commit is contained in:
parent
5649903226
commit
bca4d06c9a
2
index.ts
2
index.ts
@ -46,7 +46,6 @@ export * from './src/ldp/permissions/SparqlPatchPermissionsExtractor';
|
||||
|
||||
// LDP/Representation
|
||||
export * from './src/ldp/representation/BinaryRepresentation';
|
||||
export * from './src/ldp/representation/NamedRepresentation';
|
||||
export * from './src/ldp/representation/QuadRepresentation';
|
||||
export * from './src/ldp/representation/Representation';
|
||||
export * from './src/ldp/representation/RepresentationMetadata';
|
||||
@ -100,5 +99,4 @@ export * from './src/util/errors/UnsupportedMediaTypeHttpError';
|
||||
export * from './src/util/AcceptParser';
|
||||
export * from './src/util/AsyncHandler';
|
||||
export * from './src/util/CompositeAsyncHandler';
|
||||
export * from './src/util/TypedReadable';
|
||||
export * from './src/util/Util';
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { Readable } from 'stream';
|
||||
import { Representation } from './Representation';
|
||||
import { TypedReadable } from '../../util/TypedReadable';
|
||||
|
||||
/**
|
||||
* A representation containing binary data.
|
||||
*/
|
||||
export interface BinaryRepresentation extends Representation {
|
||||
dataType: 'binary';
|
||||
data: TypedReadable<Buffer>;
|
||||
data: Readable;
|
||||
}
|
||||
|
@ -1,12 +0,0 @@
|
||||
import { Representation } from './Representation';
|
||||
import { ResourceIdentifier } from './ResourceIdentifier';
|
||||
|
||||
/**
|
||||
* A {@link Representation} with an identifier.
|
||||
*/
|
||||
export interface NamedRepresentation extends Representation {
|
||||
/**
|
||||
* The identifier of this representation.
|
||||
*/
|
||||
identifier?: ResourceIdentifier;
|
||||
}
|
@ -1,11 +1,10 @@
|
||||
import { Quad } from 'rdf-js';
|
||||
import { Readable } from 'stream';
|
||||
import { Representation } from './Representation';
|
||||
import { TypedReadable } from '../../util/TypedReadable';
|
||||
|
||||
/**
|
||||
* A representation containing quads as data.
|
||||
*/
|
||||
export interface QuadRepresentation extends Representation {
|
||||
dataType: 'quad';
|
||||
data: TypedReadable<Quad>;
|
||||
data: Readable;
|
||||
}
|
||||
|
@ -1,33 +0,0 @@
|
||||
import { Readable } from 'stream';
|
||||
|
||||
/**
|
||||
* Interface providing typed functions for Readable streams.
|
||||
*/
|
||||
export interface TypedReadable<T> extends Readable {
|
||||
read(size?: number): any;
|
||||
unshift(chunk: any, encoding?: BufferEncoding): void;
|
||||
push(chunk: any, encoding?: BufferEncoding): boolean;
|
||||
|
||||
addListener(event: 'data', listener: (chunk: T) => void): this;
|
||||
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
||||
|
||||
emit(event: 'data', chunk: T): boolean;
|
||||
emit(event: string | symbol, ...args: any[]): boolean;
|
||||
|
||||
on(event: 'data', listener: (chunk: T) => void): this;
|
||||
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
||||
|
||||
once(event: 'data', listener: (chunk: T) => void): TypedReadable<T>;
|
||||
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
||||
|
||||
prependListener(event: 'data', listener: (chunk: T) => void): TypedReadable<T>;
|
||||
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
||||
|
||||
prependOnceListener(event: 'data', listener: (chunk: T) => void): TypedReadable<T>;
|
||||
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
||||
|
||||
removeListener(event: 'data', listener: (chunk: T) => void): TypedReadable<T>;
|
||||
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
||||
|
||||
[Symbol.asyncIterator](): AsyncIterableIterator<T>;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user