Options
All
  • Public
  • Public/Protected
  • All
Menu

将 File 转换为字符串。

Hierarchy

  • XUrl

Index

Methods

Static extract

  • extract<TUrl>(url: TUrl): Promise<object>
  • Type parameters

    • TUrl

    Parameters

    • url: TUrl

    Returns Promise<object>

Static extractFile

  • extractFile(url: any): Promise<File | undefined>
  • Parameters

    • url: any

    Returns Promise<File | undefined>

Static extractUrl

  • extractUrl<TUrl>(url: TUrl): TUrl
  • Type parameters

    • TUrl

    Parameters

    • url: TUrl

    Returns TUrl

Static generate

  • generate(file: File): string
  • Parameters

    • file: File

    Returns string

Static isXUrl

  • isXUrl(url: any): boolean
  • Parameters

    • url: any

    Returns boolean

Static transform

  • transform<T>(data: T, callback: function): Promise<T>
  • Type parameters

    • T

    Parameters

    • data: T
    • callback: function
        • (payload: object): Promise<string>
        • Parameters

          • payload: object

          Returns Promise<string>

    Returns Promise<T>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc