react-on-rails
Version:
react-on-rails JavaScript for react_on_rails Ruby gem
9 lines • 529 B
JavaScript
// Shared type guard for RendererTeardownResult, extracted so OSS and Pro can import it without
// duplicating the predicate or coupling Pro to ClientRenderer internals.
// eslint-disable-next-line import/prefer-default-export -- single-export module; named export keeps the type guard's API tied to its predicate name.
export function isRendererTeardownResult(value) {
return (value != null &&
typeof value === 'object' &&
typeof value.teardown === 'function');
}
//# sourceMappingURL=rendererTeardown.js.map