3.7.4 • Published 6 months ago
@types/s3rver v3.7.4
Installation
npm install --save @types/s3rver
Summary
This package contains type definitions for S3rver (https://github.com/jamhall/s3rver).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/s3rver.
index.d.ts
// Type definitions for S3rver 3.7
// Project: https://github.com/jamhall/s3rver
// Definitions by: David Broder-Rodgers <https://github.com/DavidBR-SW/>
// F. Eugene Aumson <https://github.com/feuGeneA/>
// Trygve Aaberge <https://github.com/trygveaa/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
/// <reference types="node" />
import { AddressInfo } from 'net';
import { IncomingMessage, ServerResponse } from 'http';
import { Http2ServerRequest, Http2ServerResponse } from 'http2';
declare class S3rver {
constructor(options: S3rverOptions);
run(): Promise<AddressInfo>;
run(callback: (error: Error | null, address: AddressInfo) => void): this;
close(): Promise<void>;
close(callback: (error?: Error) => void): this;
callback(): (req: IncomingMessage | Http2ServerRequest, res: ServerResponse | Http2ServerResponse) => void;
getMiddleware(): (req: IncomingMessage | Http2ServerRequest, res: ServerResponse | Http2ServerResponse) => void;
configureBuckets(): Promise<void>;
reset(): void;
}
interface S3rverOptions {
address?: string | undefined;
port?: number | undefined;
key?: string | Buffer | undefined;
cert?: string | Buffer | undefined;
silent?: boolean | undefined;
serviceEndpoint?: string | undefined;
directory?: string | undefined;
resetOnClose?: boolean | undefined;
allowMismatchedSignatures?: boolean | undefined;
vhostBuckets?: boolean | undefined;
configureBuckets?: ReadonlyArray<S3rverBucketConfig> | undefined;
}
interface S3rverBucketConfig {
name: string;
configs: ReadonlyArray<string | Buffer>;
}
export = S3rver;
Additional Details
- Last updated: Tue, 07 Sep 2021 09:31:23 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by David Broder-Rodgers, F. Eugene Aumson, and Trygve Aaberge.
3.7.1
8 months ago
3.7.4
6 months ago
3.7.3
6 months ago
3.7.2
7 months ago
3.7.0
3 years ago
0.0.33
3 years ago
0.0.32
4 years ago
0.0.31
5 years ago
0.0.30
6 years ago
0.0.29
6 years ago
0.0.28
8 years ago
0.0.27
8 years ago
0.0.26-alpha
8 years ago
0.0.25-alpha
8 years ago
0.0.24-alpha
8 years ago
0.0.23-alpha
8 years ago
0.0.22-alpha
8 years ago
0.0.21-alpha
8 years ago
0.0.20-alpha
8 years ago
0.0.15-alpha
8 years ago
0.0.14-alpha
8 years ago