Skip to content

Commit

Permalink
type fixes around some deepFreeze usages
Browse files Browse the repository at this point in the history
  • Loading branch information
zxbodya committed Aug 4, 2023
1 parent b844033 commit c2b6678
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/utils/test/testUtils/testData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export const oneOfSchema: RJSFSchema = deepFreeze({
export const ONE_OF_SCHEMA_OPTIONS = oneOfSchema[ONE_OF_KEY]! as RJSFSchema[];
export const FIRST_ONE_OF: RJSFSchema = ONE_OF_SCHEMA_OPTIONS[0];
export const SECOND_ONE_OF: RJSFSchema = ONE_OF_SCHEMA_OPTIONS[1];
export const OPTIONAL_ONE_OF_SCHEMA: RJSFSchema = deepFreeze({
export const OPTIONAL_ONE_OF_SCHEMA: RJSFSchema = deepFreeze<RJSFSchema>({
oneOf: [
{
type: 'object',
Expand Down Expand Up @@ -628,7 +628,7 @@ export const SCHEMA_WITH_SINGLE_CONDITION: RJSFSchema = deepFreeze({
},
});

export const SCHEMA_WITH_MULTIPLE_CONDITIONS: RJSFSchema = deepFreeze({
export const SCHEMA_WITH_MULTIPLE_CONDITIONS: RJSFSchema = deepFreeze<RJSFSchema>({
type: 'object',
properties: {
Animal: {
Expand Down Expand Up @@ -734,7 +734,7 @@ export const SCHEMA_WITH_MULTIPLE_CONDITIONS: RJSFSchema = deepFreeze({
required: ['Animal'],
});

export const SCHEMA_WITH_NESTED_CONDITIONS: RJSFSchema = deepFreeze({
export const SCHEMA_WITH_NESTED_CONDITIONS: RJSFSchema = deepFreeze<RJSFSchema>({
type: 'object',
properties: {
country: {
Expand Down Expand Up @@ -795,7 +795,7 @@ export const SCHEMA_WITH_NESTED_CONDITIONS: RJSFSchema = deepFreeze({
},
});

export const SCHEMA_WITH_ARRAY_CONDITION: RJSFSchema = deepFreeze({
export const SCHEMA_WITH_ARRAY_CONDITION: RJSFSchema = deepFreeze<RJSFSchema>({
type: 'object',
properties: {
list: {
Expand All @@ -805,7 +805,7 @@ export const SCHEMA_WITH_ARRAY_CONDITION: RJSFSchema = deepFreeze({
},
});

export const SCHEMA_WITH_ALLOF_CANNOT_MERGE: RJSFSchema = deepFreeze({
export const SCHEMA_WITH_ALLOF_CANNOT_MERGE: RJSFSchema = deepFreeze<RJSFSchema>({
type: 'object',
properties: {
animal: {
Expand Down

0 comments on commit c2b6678

Please sign in to comment.