Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

@rummelonp
CreatedJune 22, 2022 11:59
    • Star(0)You must be signed in to star a gist
    • Fork(0)You must be signed in to fork a gist

    Select an option

    Save rummelonp/4bc8f5e055dbf1a9f4e1cdb00d84554d to your computer and use it in GitHub Desktop.
    @types/activestorage が最新に追従出来てないので雑対応
    declare module'@rails/activestorage'{
    exportfunctionstart():void
    exportclassDirectUpload{
    id:number
    file:File
    url:string
    constructor(file:File,url:string,serviceName:string,attachmentName:string,delegate?:DirectUploadDelegate)
    create(callback:(error:Error|null,blob:Blob|null)=>void):void
    }
    exportinterfaceDirectUploadDelegate{
    directUploadWillCreateBlobWithXHR?:((xhr:XMLHttpRequest)=>void)|undefined
    directUploadWillStoreFileWithXHR?:((xhr:XMLHttpRequest)=>void)|undefined
    }
    exportinterfaceBlob{
    filename:string
    content_type:string
    byte_size:number
    checksum:string
    id:number
    signed_id:string
    key:string
    service_name:string
    created_at:string
    }
    }
    Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

    [8]ページ先頭

    ©2009-2025 Movatter.jp