You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
719 B

namespace Fable.Etebase
open Fable.Core
open Fable.Core.JS
open Fable.Core.JsInterop
type Item =
abstract uid: string
abstract etag: string
abstract isDeleted: bool
abstract isMissingContent: bool
abstract getContentBytes: unit -> Promise<byte array>
abstract getContentString: unit -> Promise<string>
abstract setMeta: metadata: #ItemMetadata -> unit
abstract getMeta<'a when 'a :> ItemMetadata> : unit -> 'a
abstract verify: unit -> bool
abstract setContent: content: string -> Promise<unit>
abstract setContent: content: byte array -> Promise<unit>
abstract delete: ?preserveContent: bool -> unit