mirror of
https://github.com/ConvoyPanel/panel.git
synced 2026-06-14 17:33:00 +08:00
7 lines
199 B
TypeScript
7 lines
199 B
TypeScript
import { SWRResponse } from 'swr';
|
|
|
|
|
|
// Makes the data property of the SWRResponse not undefined
|
|
export type Optimistic<T extends SWRResponse> = Omit<T, 'data'> & {
|
|
data: NonNullable<T['data']>
|
|
} |