12 lines
288 B
TypeScript
12 lines
288 B
TypeScript
declare module "ali-oss" {
|
|
type PutOptions = {
|
|
mime?: string;
|
|
headers?: Record<string, string>;
|
|
};
|
|
|
|
export default class OSS {
|
|
constructor(options: Record<string, unknown>);
|
|
put(name: string, file: Buffer | Uint8Array, options?: PutOptions): Promise<unknown>;
|
|
}
|
|
}
|