minigame-std
Version:
Mini Game Standard Development Library.
32 lines (19 loc) • 580 B
Markdown
[**minigame-std**](../../../README.md)
***
[minigame-std](../../../README.md) / [fs](../README.md) / readJsonFileSync
# Function: readJsonFileSync()
```ts
function readJsonFileSync<T>(filePath): IOResult<T>
```
Defined in: [src/std/fs/fs\_sync.ts:157](https://github.com/JiangJie/minigame-std/blob/fdb22241c47c2e98329a4c62befde728957e03ee/src/std/fs/fs_sync.ts#L157)
`readJsonFile` 的同步版本。
## Type Parameters
| Type Parameter |
| ------ |
| `T` |
## Parameters
| Parameter | Type |
| ------ | ------ |
| `filePath` | `string` |
## Returns
`IOResult`\<`T`\>