Files
documentation/node_modules/@docusaurus/utils-validation/lib/JoiFrontMatter.d.ts
2024-03-22 03:47:51 +05:30

18 lines
712 B
TypeScript

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import Joi from './Joi';
/**
* Enhance the default `Joi.string()` type so that it can convert number to
* strings. If user use front matter "tag: 2021", we shouldn't need to ask her
* to write "tag: '2021'". Also yaml tries to convert patterns like "2019-01-01"
* to dates automatically.
*
* @see https://github.com/facebook/docusaurus/issues/4642
* @see https://github.com/sideway/joi/issues/1442#issuecomment-823997884
*/
export declare const JoiFrontMatter: Joi.Root;
//# sourceMappingURL=JoiFrontMatter.d.ts.map