npm.io
0.6.5 • Published 2 years ago

@types/laravel-vapor

Licence
MIT
Version
0.6.5
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/laravel-vapor

Summary

This package contains type definitions for laravel-vapor (https://github.com/laravel/vapor-js).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/laravel-vapor.

index.d.ts

//

interface VaporStoreOptions {
    signedStorageUrl?: string | undefined;
    bucket?: string | undefined;
    cancelToken?: string | undefined;
    contentType?: string | undefined;
    data?: any;
    expires?: string | undefined;
    visibility?: string | undefined;
    baseURL?: string | undefined;
    headers?: any;
    options?: any;
    // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
    progress?: (value: number) => void | undefined;
}

declare class Vapor {
    store(file: File, options?: VaporStoreOptions): Promise<any>;
    withBaseAssetUrl(url?: string): void;
    asset(path: string): string;
}

declare const VaporInstance: Vapor;
export = VaporInstance;

Additional Details

  • Last updated: Mon, 17 Jun 2024 2003 GMT
  • Dependencies: none

Credits

These definitions were written by saibotk.