mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 19:38:58 +00:00
90 lines
1.5 KiB
TypeScript
90 lines
1.5 KiB
TypeScript
import { define } from "../../codegen/class-definitions";
|
|
|
|
export default [
|
|
define({
|
|
name: "S3Client",
|
|
construct: true,
|
|
finalize: true,
|
|
configurable: false,
|
|
klass: {
|
|
file: {
|
|
fn: "staticFile",
|
|
length: 2,
|
|
},
|
|
unlink: {
|
|
fn: "staticUnlink",
|
|
length: 2,
|
|
},
|
|
delete: {
|
|
/// just an alias for unlink
|
|
fn: "staticUnlink",
|
|
length: 2,
|
|
},
|
|
list: {
|
|
fn: "staticListObjects",
|
|
length: 2,
|
|
},
|
|
presign: {
|
|
fn: "staticPresign",
|
|
length: 2,
|
|
},
|
|
exists: {
|
|
fn: "staticExists",
|
|
length: 2,
|
|
},
|
|
size: {
|
|
fn: "staticSize",
|
|
length: 2,
|
|
},
|
|
write: {
|
|
fn: "staticWrite",
|
|
length: 2,
|
|
},
|
|
stat: {
|
|
fn: "staticStat",
|
|
length: 2,
|
|
},
|
|
},
|
|
JSType: "0b11101110",
|
|
proto: {
|
|
file: {
|
|
fn: "file",
|
|
length: 2,
|
|
},
|
|
unlink: {
|
|
fn: "unlink",
|
|
length: 2,
|
|
},
|
|
delete: {
|
|
/// just an alias for unlink
|
|
fn: "unlink",
|
|
length: 2,
|
|
},
|
|
list: {
|
|
fn: "listObjects",
|
|
length: 2,
|
|
},
|
|
presign: {
|
|
fn: "presign",
|
|
length: 2,
|
|
},
|
|
exists: {
|
|
fn: "exists",
|
|
length: 2,
|
|
},
|
|
size: {
|
|
fn: "size",
|
|
length: 2,
|
|
},
|
|
write: {
|
|
fn: "write",
|
|
length: 2,
|
|
},
|
|
stat: {
|
|
fn: "stat",
|
|
length: 2,
|
|
},
|
|
},
|
|
}),
|
|
];
|