@tinacms/graphql 1.5.17 → 1.5.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ import type { Bridge } from './index';
6
6
  */
7
7
  export declare class FilesystemBridge implements Bridge {
8
8
  rootPath: string;
9
- outputPath?: string;
9
+ outputPath: string;
10
10
  constructor(rootPath: string, outputPath?: string);
11
11
  glob(pattern: string, extension: string): Promise<string[]>;
12
12
  delete(filepath: string): Promise<void>;
@@ -1,19 +1,16 @@
1
- /**
2
-
3
- */
1
+ import { Collection, CollectionTemplateable, TinaSchema, normalizePath } from '@tinacms/schema-tools';
4
2
  import * as yup from 'yup';
5
- import { Collection, CollectionTemplateable, normalizePath, TinaSchema } from '@tinacms/schema-tools';
3
+ import { ContentFormat, ContentFrontmatterFormat } from '@tinacms/schema-tools';
6
4
  import { Bridge } from './bridge';
7
5
  export { normalizePath };
8
- export declare const stringifyFile: (content: object, format: FormatType | string, keepTemplateKey: boolean, markdownParseConfig?: {
9
- frontmatterFormat?: "toml" | "yaml" | "json";
6
+ export declare const stringifyFile: (content: object, format: ContentFormat | string, keepTemplateKey: boolean, markdownParseConfig?: {
7
+ frontmatterFormat?: ContentFrontmatterFormat;
10
8
  frontmatterDelimiters?: [string, string] | string;
11
9
  }) => string;
12
- export declare const parseFile: <T extends object>(content: string, format: FormatType | string, yupSchema: (args: typeof yup) => yup.ObjectSchema<any>, markdownParseConfig?: {
13
- frontmatterFormat?: "toml" | "yaml" | "json";
10
+ export declare const parseFile: <T extends object>(content: string, format: ContentFormat | string, yupSchema: (args: typeof yup) => yup.ObjectSchema<any>, markdownParseConfig?: {
11
+ frontmatterFormat?: ContentFrontmatterFormat;
14
12
  frontmatterDelimiters?: [string, string] | string;
15
13
  }) => T;
16
- export type FormatType = 'json' | 'md' | 'mdx' | 'markdown';
17
14
  export declare const atob: (b64Encoded: string) => string;
18
15
  export declare const btoa: (string: string) => string;
19
16
  export declare const scanAllContent: (tinaSchema: TinaSchema, bridge: Bridge, callback: (collection: Collection<true>, contentPaths: string[]) => Promise<void>) => Promise<string[]>;