{"version":3,"file":"CustomType.mjs","sources":["../../src/CustomType.ts"],"sourcesContent":["function _customType(fields) {\n    const data = {\n        fields,\n        type: 'customType',\n    };\n    return { data };\n}\n/**\n * Define a custom type. This type represents an inline, typed JSON object.\n * @see {@link https://docs.amplify.aws/react/build-a-backend/data/data-modeling/add-fields/#specify-a-custom-field-type}\n * @param fields the fields to be added to the custom type\n * @returns a custom type\n * @example\n * a.schema({\n *   Post: a.model({\n *     location: a.customType({\n *       lat: a.float(),\n *       long: a.float(),\n *     }),\n *     content: a.string(),\n *   }),\n * });\n * @example\n * a.schema({\n *   Location: a.customType({\n *       lat: a.float(),\n *       long: a.float(),\n *   }),\n *\n *   Post: a.model({\n *     location: a.ref('Location'),\n *     content: a.string(),\n *   }),\n *\n *   User: a.model({\n *     lastKnownLocation: a.ref('Location'),\n *   }),\n * });\n */\nexport function customType(fields) {\n    return _customType(fields);\n}\n"],"names":[],"mappings":"AAAA,SAAS,WAAW,CAAC,MAAM,EAAE;AAC7B,IAAI,MAAM,IAAI,GAAG;AACjB,QAAQ,MAAM;AACd,QAAQ,IAAI,EAAE,YAAY;AAC1B,KAAK;AACL,IAAI,OAAO,EAAE,IAAI,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,UAAU,CAAC,MAAM,EAAE;AACnC,IAAI,OAAO,WAAW,CAAC,MAAM,CAAC;AAC9B;;;;"}