diff --git a/package-lock.json b/package-lock.json index 7024485..a87a853 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "protoc-gen-elm", - "version": "3.4.1", + "version": "3.4.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "protoc-gen-elm", - "version": "3.4.1", + "version": "3.4.2", "license": "BSD-3-Clause", "bin": { "protoc-gen-elm": "index.js" diff --git a/package.json b/package.json index d08ebe1..23eb279 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "protoc-gen-elm", - "version": "3.4.1", + "version": "3.4.2", "description": "Elm protoc plugin", "keywords": [ "elm", diff --git a/src/Generator.elm b/src/Generator.elm index 7bb0ddc..fd34ecf 100644 --- a/src/Generator.elm +++ b/src/Generator.elm @@ -50,7 +50,7 @@ requestToResponse versions options req = devToolsFiles = if options.grpcDevTools then - [ Generator.DevToolsWorker.devToolsJsFile versions ] + [ Generator.DevToolsWorker.devToolsJsFile versions, Generator.DevToolsWorker.devToolsDTsFile ] else [] diff --git a/src/Generator/DevToolsWorker.elm b/src/Generator/DevToolsWorker.elm index c9d1ecc..33a1f85 100644 --- a/src/Generator/DevToolsWorker.elm +++ b/src/Generator/DevToolsWorker.elm @@ -1,4 +1,4 @@ -module Generator.DevToolsWorker exposing (devToolsJsFile, generateDevToolsWorker) +module Generator.DevToolsWorker exposing (devToolsJsFile, generateDevToolsWorker, devToolsDTsFile) import Elm.CodeGen as C import Generator.Common as Common @@ -161,6 +161,11 @@ devToolsJsFile versions = { name = "Proto/dev-tools.mjs", content = devToolsJsFileContent versions, insertionPoint = "", generatedCodeInfo = Nothing } +devToolsDTsFile : CodeGeneratorResponse.File +devToolsDTsFile = + { name = "Proto/dev-tools.d.mts", content = "export {}", insertionPoint = "", generatedCodeInfo = Nothing } + + devToolsJsFileContent : AllVersions -> String devToolsJsFileContent versions = """/**