ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
12 lines (9 loc) • 335 B
text/typescript
import { RaRecord } from '../types';
export type LinkToFunctionType<RecordType extends RaRecord = RaRecord> = (
record: RecordType,
reference: string
) => string | false | Promise<string | false>;
export type LinkToType<RecordType extends RaRecord = RaRecord> =
| string
| false
| LinkToFunctionType<RecordType>;