Fix TypeScript errors in action engine

This commit is contained in:
Thaum Rystra
2025-05-02 15:38:18 +02:00
parent d42d2a724e
commit ae5a159e58
31 changed files with 198 additions and 93 deletions

View File

@@ -1,14 +1,6 @@
import SimpleSchema from 'simpl-schema';
import STORAGE_LIMITS from '/imports/constants/STORAGE_LIMITS';
import { TypedSimpleSchema } from '/imports/api/utility/TypedSimpleSchema';
export interface Shared {
owner: string,
readers: string[],
writers: string[],
public: boolean,
readersCanCopy?: true,
}
import { InferType, TypedSimpleSchema } from '/imports/api/utility/TypedSimpleSchema';
const SharingSchema = TypedSimpleSchema.from({
owner: {
@@ -47,4 +39,6 @@ const SharingSchema = TypedSimpleSchema.from({
},
});
export type Shared = InferType<typeof SharingSchema>;
export default SharingSchema;