mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 00:18:27 +00:00
## Addresses #7765 ### Define front end interfaces for interacting with the [updated API specs for merging scheduling functionality into the Queries page](https://github.com/fleetdm/fleet/pull/11742/files), for use by all frontend work in this story. --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
20 lines
428 B
TypeScript
20 lines
428 B
TypeScript
import PropTypes from "prop-types";
|
|
|
|
export default PropTypes.shape({
|
|
error: PropTypes.string,
|
|
name: PropTypes.string,
|
|
onChange: PropTypes.func,
|
|
value: PropTypes.oneOfType([
|
|
PropTypes.array,
|
|
PropTypes.bool,
|
|
PropTypes.number,
|
|
PropTypes.string,
|
|
]),
|
|
});
|
|
|
|
export interface IFormField<T = any[] | boolean | number | string> {
|
|
error: string;
|
|
name: string;
|
|
onChange: (value: any) => void;
|
|
value: T;
|
|
}
|