Comments (3)
Hello, I believe the built-in PropsWithChildren type from React could be used here:
import type { PropsWithChildren } from 'react'
interface HelmetProps extends PropsWithChildren<{
async?: boolean;
base?: any;
.....
}>
Cheers
from react-helmet-async.
As a temporary solution, this can be solved by extending the HelmetProps
interface.
// react-helmet-async.d.ts
// create this file somewhere in your project
// so that your ts compiler can pick it up.
declare module 'react-helmet-async' {
export interface HelmetProps {
children: ReactNode;
}
}
from react-helmet-async.
from react-helmet-async.
Related Issues (20)
- Optional Context break in 0.2.0 HOT 2
- No release notes HOT 6
- onload is not working because is getting rendered as string
- [2.0.1] typing issue on HelmetProvider
- `/*#__PURE__*/` annotations don't play well with Vite / Rollup HOT 3
- Vite SSG: The requested module 'react-helmet-async' does not provide an export named 'HelmetProvider' HOT 5
- Support for micro-frontends (container app with hosted apps)
- fix: The url for constants.js in the readMe file
- Module parse failed: unexpected token HOT 5
- using UNSAFE_componentWillMount in strict mode HOT 1
- Meta keywords and description are disabled
- Is there a way to specify a default title? HOT 1
- Is it possible to change meta tags dynamically while page is loading and after that share it to some socials? HOT 2
- Support to preact?
- Add Installation Section to README.md HOT 1
- g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g g'、
- Only some tags are being rendered?
- HelmetDispatcher leaks when used in combination with Suspense
- nicer releases HOT 2
- `TypeError: Cannot read properties of undefined (reading 'add')` thrown when provider is missing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-helmet-async.