typed-wx-api
Version:
Typed Wechat API
44 lines (25 loc) • 691 B
Markdown
[typed-wx-api](../README.md) / [Exports](../modules.md) / TicketStorage
# Interface: TicketStorage
## Table of contents
### Methods
- [load](TicketStorage.md#load)
- [save](TicketStorage.md#save)
## Methods
### load
▸ **load**(`type`): `Promise`<``null`` \| [`Ticket`](../classes/Ticket.md)\>
#### Parameters
| Name | Type |
| :------ | :------ |
| `type` | `string` |
#### Returns
`Promise`<``null`` \| [`Ticket`](../classes/Ticket.md)\>
___
### save
▸ **save**(`type`, `ticket`): `Promise`<`void`\>
#### Parameters
| Name | Type |
| :------ | :------ |
| `type` | `string` |
| `ticket` | ``null`` \| [`Ticket`](../classes/Ticket.md) |
#### Returns
`Promise`<`void`\>