Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const EpubProvider: React.FunctionComponent = ({ children, settingState, calculationState, currentState }: EpubProviderProps) => {
ow(settingState, 'EpubProvider.settingState', ow.any(ow.nullOrUndefined, Validator.Epub.SettingState));
ow(calculationState, 'EpubProvider.calculationState', ow.any(ow.nullOrUndefined, Validator.Epub.CalculationState));
ow(currentState, 'EpubProvider.currentState', ow.any(ow.nullOrUndefined, Validator.Epub.CurrentState));
return (
{children}
);
};
export const EpubProvider: React.FunctionComponent = ({ children, settingState, calculationState, currentState }: EpubProviderProps) => {
ow(settingState, 'EpubProvider.settingState', ow.any(ow.nullOrUndefined, Validator.Epub.SettingState));
ow(calculationState, 'EpubProvider.calculationState', ow.any(ow.nullOrUndefined, Validator.Epub.CalculationState));
ow(currentState, 'EpubProvider.currentState', ow.any(ow.nullOrUndefined, Validator.Epub.CurrentState));
return (
{children}
);
};
export const ComicProvider: React.FunctionComponent = ({ children, settingState, calculationState, currentState }: ComicProviderProps) => {
ow(settingState, 'ComicProvider.settingState', ow.any(ow.nullOrUndefined, Validator.Comic.SettingState));
ow(calculationState, 'ComicProvider.calculationState', ow.any(ow.nullOrUndefined, Validator.Comic.CalculationState));
ow(currentState, 'ComicProvider.currentState', ow.any(ow.nullOrUndefined, Validator.Comic.CurrentState));
return (
{children}
);
};
export const ComicProvider: React.FunctionComponent = ({ children, settingState, calculationState, currentState }: ComicProviderProps) => {
ow(settingState, 'ComicProvider.settingState', ow.any(ow.nullOrUndefined, Validator.Comic.SettingState));
ow(calculationState, 'ComicProvider.calculationState', ow.any(ow.nullOrUndefined, Validator.Comic.CalculationState));
ow(currentState, 'ComicProvider.currentState', ow.any(ow.nullOrUndefined, Validator.Comic.CurrentState));
return (
{children}
);
};