Skip to content

Commit 47b4ef1

Browse files
committed
Fix lint issue
1 parent c496181 commit 47b4ef1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

doc/api/n-api.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ for `node-addon-api`.
8080

8181
## Rust
8282

83-
Node-API is also accessible from Rust through the [`NAPI-RS`][] project.
83+
Node-API is also accessible from Rust through the [NAPI-RS][] project.
8484
`NAPI-RS` provides safe Rust bindings to Node-API, allowing developers to write
8585
native Node.js modules in Rust while maintaining ABI stability across Node.js
8686
versions. The project offers both low-level bindings that closely mirror the
@@ -106,7 +106,7 @@ pub fn create_object() -> MyObject {
106106

107107
This will automatically generate the following TypeScript definition:
108108

109-
```typescript
109+
```ts
110110
export interface MyObject {
111111
foo: string;
112112
}
@@ -115,9 +115,10 @@ export declare function createObject(): MyObject;
115115
```
116116

117117
The `NAPI-RS` ecosystem includes:
118-
- Build tooling that simplifies the compilation and packaging process
119-
- TypeScript type generation for better IDE support
120-
- Cross-platform compilation support, including `WebAssembly`
118+
119+
* Build tooling that simplifies the compilation and packaging process
120+
* TypeScript type generation for better IDE support
121+
* Cross-platform compilation support, including `WebAssembly`
121122

122123
When using `NAPI-RS` for Rust-based Node.js addons, refer to the
123124
[NAPI-RS documentation](https://napi.rs) for comprehensive
@@ -6789,6 +6790,7 @@ the add-on's file name during loading.
67896790
[GYP]: https://gyp.gsrc.io
67906791
[GitHub releases]: https://help.github.com/en/github/administering-a-repository/about-releases
67916792
[LLVM]: https://llvm.org
6793+
[NAPI-RS]: https://github.com/napi-rs/napi-rs
67926794
[Native Abstractions for Node.js]: https://github.com/nodejs/nan
67936795
[Node-API Media]: https://github.com/nodejs/abi-stable-node/blob/HEAD/node-api-media.md
67946796
[Object lifetime management]: #object-lifetime-management
@@ -6888,7 +6890,6 @@ the add-on's file name during loading.
68886890
[`napi_unwrap`]: #napi_unwrap
68896891
[`napi_wrap`]: #napi_wrap
68906892
[`node-addon-api`]: https://github.com/nodejs/node-addon-api
6891-
[`NAPI-RS`]: https://github.com/napi-rs/napi-rs
68926893
[`node_api.h`]: https://github.com/nodejs/node/blob/HEAD/src/node_api.h
68936894
[`node_api_basic_finalize`]: #node_api_basic_finalize
68946895
[`node_api_create_external_string_latin1`]: #node_api_create_external_string_latin1

0 commit comments

Comments
 (0)