teableio/teable

View on GitHub
packages/sdk/src/context/field/FieldContext.ts

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import type { IFieldInstance } from '../../model';

// eslint-disable-next-line @typescript-eslint/naming-convention
export const FieldContext = React.createContext<{
  fields: IFieldInstance[];
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
}>(null!);