Skip to content

Commit

Permalink
update cache.gleam
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Aug 13, 2024
1 parent fb372f0 commit 63dfbbe
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions sdk/gleam/demo/src/fluentci/cache.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,8 @@ import gleam/javascript/promise.{type Promise}
pub type Cache

@external(javascript, "../fluentci.mjs", "id")
pub fn id_(cache: Cache) -> Promise(String)
pub fn id(cache: Cache) -> Promise(String)

@external(javascript, "../fluentci.mjs", "key")
pub fn key_(cache: Cache) -> Promise(String)
pub fn key(cache: Cache) -> Promise(String)

pub fn id(cache: Cache) -> Promise(String) {
id_(cache)
}

pub fn key(cache: Cache) -> Promise(String) {
key_(cache)
}

0 comments on commit 63dfbbe

Please sign in to comment.