chore: publish 2.0.0-alpha.0
This commit is contained in:
parent
2467b7139b
commit
f9c01b40f7
4 changed files with 29 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@napi-rs/cli",
|
||||
"version": "1.3.3",
|
||||
"version": "2.0.0-alpha.0",
|
||||
"description": "Cli tools for napi-rs",
|
||||
"keywords": ["cli", "rust", "napi", "n-api", "neon"],
|
||||
"author": "LongYinan <lynweklm@gmail.com>",
|
||||
|
|
|
@ -1,17 +1,22 @@
|
|||
[package]
|
||||
name = "napi-derive-backend"
|
||||
version = "0.1.0"
|
||||
description = "Codegen backend for napi procedural macro"
|
||||
edition = "2018"
|
||||
homepage = "https://napi.rs"
|
||||
license = "MIT"
|
||||
name = "napi-derive-backend"
|
||||
readme = "README.md"
|
||||
repository = "https://github.com/napi-rs/napi-rs"
|
||||
version = "1.0.0"
|
||||
|
||||
[features]
|
||||
type-def = ["regex", "once_cell"]
|
||||
strict = []
|
||||
type-def = ["regex", "once_cell"]
|
||||
|
||||
[dependencies]
|
||||
proc-macro2 = "1.0"
|
||||
quote = "1.0"
|
||||
syn = {version = "1.0", features = ["fold", "full"]}
|
||||
convert_case = "0.4.0"
|
||||
convert_case = "0.4"
|
||||
proc-macro2 = "1"
|
||||
quote = "1"
|
||||
syn = {version = "1", features = ["fold", "full", "extra-traits"]}
|
||||
|
||||
[dependencies.regex]
|
||||
optional = true
|
||||
|
|
|
@ -18,7 +18,7 @@ type-def = ["napi-derive-backend/type-def"]
|
|||
|
||||
[dependencies]
|
||||
convert_case = "0.4"
|
||||
napi-derive-backend = {path = "../backend"}
|
||||
napi-derive-backend = {version = "1", path = "../backend"}
|
||||
proc-macro2 = "1.0"
|
||||
quote = "1.0"
|
||||
syn = {version = "1.0", features = ["fold", "full", "extra-traits"]}
|
||||
|
|
17
examples/napi/type.d.ts
vendored
17
examples/napi/type.d.ts
vendored
|
@ -2,8 +2,21 @@ export function getWords(): Array<string>
|
|||
export function getNums(): Array<number>
|
||||
export function sumNums(nums: Array<number>): number
|
||||
export function getCwd(callback: (arg0: string) => void): void
|
||||
export enum Kind { Dog = 0, Cat = 1, Duck = 2 }
|
||||
export enum CustomNumEnum { One = 1, Two = 2, Three = 3, Four = 4, Six = 6, Eight = 8, Nine = 9, Ten = 10 }
|
||||
export enum Kind {
|
||||
Dog = 0,
|
||||
Cat = 1,
|
||||
Duck = 2,
|
||||
}
|
||||
export enum CustomNumEnum {
|
||||
One = 1,
|
||||
Two = 2,
|
||||
Three = 3,
|
||||
Four = 4,
|
||||
Six = 6,
|
||||
Eight = 8,
|
||||
Nine = 9,
|
||||
Ten = 10,
|
||||
}
|
||||
export function enumToI32(e: CustomNumEnum): number
|
||||
export function mapOption(val: number | undefined): number | undefined
|
||||
export function add(a: number, b: number): number
|
||||
|
|
Loading…
Reference in a new issue