@tinacms/graphql 0.55.1 → 0.57.0-hotfix

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.
@@ -0,0 +1,16 @@
1
+ /**
2
+ Copyright 2021 Forestry.io Holdings, Inc.
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+ http://www.apache.org/licenses/LICENSE-2.0
7
+ Unless required by applicable law or agreed to in writing, software
8
+ distributed under the License is distributed on an "AS IS" BASIS,
9
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ See the License for the specific language governing permissions and
11
+ limitations under the License.
12
+ */
13
+ import * as yup from 'yup';
14
+ export declare const stringifyFile: (content: object, format: FormatType | string, keepTemplateKey: boolean) => string;
15
+ export declare const parseFile: <T extends object>(content: string, format: FormatType | string, yupSchema: (args: typeof yup) => yup.ObjectSchema<any>) => T;
16
+ export declare type FormatType = 'json' | 'md' | 'mdx' | 'markdown';
package/dist/index.d.ts CHANGED
@@ -13,9 +13,6 @@ limitations under the License.
13
13
  export { GithubBridge } from './primitives/database/github';
14
14
  export type { GithubManagerInit } from './primitives/database/github';
15
15
  export { gql, resolve, buildSchema, indexDB, createDatabase, githubRoute, } from './primitives';
16
- import { clearCache as s3ClearCache, s3Cache } from './cache/s3';
17
- import { clearCache as lruClearCache, simpleCache } from './cache/lru';
18
- export { lruClearCache, lruClearCache as clearCache, s3ClearCache, s3Cache, simpleCache, };
19
16
  import type { TinaCloudSchema as TinaCloudSchemaBase, TinaCloudCollection as TinaCloudCollectionBase, TinaCloudTemplateBase as TinaTemplate, TinaFieldBase } from './primitives/types';
20
17
  export declare const listBranches: ({ auth, owner, repo }: {
21
18
  auth: any;