From 918fbaf5a30bef606286641c2dd7b1f145579029 Mon Sep 17 00:00:00 2001 From: Dave Lucia Date: Thu, 14 Nov 2024 14:23:12 -0500 Subject: [PATCH] Fix typespec for Lua.API.install/3 (#60) --- guides/working-with-lua.livemd | 2 +- lib/lua/api.ex | 2 +- mix.exs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/guides/working-with-lua.livemd b/guides/working-with-lua.livemd index 8bf90e1..f36ca3c 100644 --- a/guides/working-with-lua.livemd +++ b/guides/working-with-lua.livemd @@ -4,7 +4,7 @@ ```elixir Mix.install([ - {:lua, "~> 0.0.21"} + {:lua, "~> 0.0.22"} ]) ``` diff --git a/lib/lua/api.ex b/lib/lua/api.ex index dd6c2a0..4310676 100644 --- a/lib/lua/api.ex +++ b/lib/lua/api.ex @@ -97,7 +97,7 @@ defmodule Lua.API do @type scope_def :: list(String.t()) @callback scope :: scope_def() - @callback install(Lua.t(), scope_def(), any()) :: Lua.t() | String.t() + @callback install(Lua.t(), scope_def(), any()) :: Lua.t() | Lua.Chunk.t() | String.t() @optional_callbacks [install: 3] @doc """ diff --git a/mix.exs b/mix.exs index 3012f32..5993183 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule Lua.MixProject do use Mix.Project @url "https://github.com/tv-labs/lua" - @version "0.0.21" + @version "0.0.22" def project do [