Enforce front project structure through ESLINT (#7863)
Fixes: https://github.com/twentyhq/twenty/issues/7329
This commit is contained in:
@ -0,0 +1,5 @@
|
||||
import { createContext } from 'react';
|
||||
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
||||
|
||||
export const ApolloMetadataClientContext =
|
||||
createContext<ApolloClient<NormalizedCacheObject> | null>(null);
|
||||
@ -0,0 +1,24 @@
|
||||
import { createContext } from 'react';
|
||||
|
||||
import { RecordChipData } from '@/object-record/record-field/types/RecordChipData';
|
||||
import { ObjectRecord } from '@/object-record/types/ObjectRecord';
|
||||
|
||||
export type ChipGeneratorPerObjectNameSingularPerFieldName = Record<
|
||||
string,
|
||||
Record<string, (record: ObjectRecord) => RecordChipData>
|
||||
>;
|
||||
|
||||
export type IdentifierChipGeneratorPerObject = Record<
|
||||
string,
|
||||
(record: ObjectRecord) => RecordChipData
|
||||
>;
|
||||
|
||||
export type PreComputedChipGeneratorsContextProps = {
|
||||
chipGeneratorPerObjectPerField: ChipGeneratorPerObjectNameSingularPerFieldName;
|
||||
identifierChipGeneratorPerObject: IdentifierChipGeneratorPerObject;
|
||||
};
|
||||
|
||||
export const PreComputedChipGeneratorsContext =
|
||||
createContext<PreComputedChipGeneratorsContextProps>(
|
||||
{} as PreComputedChipGeneratorsContextProps,
|
||||
);
|
||||
Reference in New Issue
Block a user