Socket
Socket
Sign inDemoInstall

@types/react-helmet

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-helmet - npm Package Compare versions

Comparing version 5.0.22 to 5.0.23

10

react-helmet v5.0/index.d.ts

@@ -1,11 +0,1 @@

// Type definitions for react-helmet 5.0
// Project: https://github.com/nfl/react-helmet
// Definitions by: Evan Bremer <https://github.com/evanbb>
// Isman Usoh <https://github.com/isman-usoh>
// Yui T. <https://github.com/yuit>
// Yamagishi Kazutoshi <https://github.com/ykzts>
// Justin Hall <https://github.com/wKovacs64>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from "react";

@@ -12,0 +2,0 @@

24

react-helmet v5.0/package.json
{
"name": "@types/react-helmet",
"version": "5.0.22",
"version": "5.0.23",
"description": "TypeScript definitions for react-helmet",

@@ -10,24 +10,24 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-helmet",

"name": "Evan Bremer",
"url": "https://github.com/evanbb",
"githubUsername": "evanbb"
"githubUsername": "evanbb",
"url": "https://github.com/evanbb"
},
{
"name": "Isman Usoh",
"url": "https://github.com/isman-usoh",
"githubUsername": "isman-usoh"
"githubUsername": "isman-usoh",
"url": "https://github.com/isman-usoh"
},
{
"name": "Yui T.",
"url": "https://github.com/yuit",
"githubUsername": "yuit"
"githubUsername": "yuit",
"url": "https://github.com/yuit"
},
{
"name": "Yamagishi Kazutoshi",
"url": "https://github.com/ykzts",
"githubUsername": "ykzts"
"githubUsername": "ykzts",
"url": "https://github.com/ykzts"
},
{
"name": "Justin Hall",
"url": "https://github.com/wKovacs64",
"githubUsername": "wKovacs64"
"githubUsername": "wKovacs64",
"url": "https://github.com/wKovacs64"
}

@@ -46,4 +46,4 @@ ],

},
"typesPublisherContentHash": "c147146a05375b0d00f39e2bf72c80c6091ea23bf06101720aa7e2c39db7bf97",
"typesPublisherContentHash": "fceb6a43f2f40600de1015e7e3446ed9765f2b2b2376d922f387ab534b389913",
"typeScriptVersion": "4.5"
}

@@ -9,9 +9,95 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-helmet/v5.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-helmet/v5/index.d.ts)
````ts
import * as React from "react";
interface OtherElementAttributes {
[key: string]: string | number | boolean | null | undefined;
}
type HtmlProps = JSX.IntrinsicElements["html"] & OtherElementAttributes;
type BodyProps = JSX.IntrinsicElements["body"] & OtherElementAttributes;
type LinkProps = JSX.IntrinsicElements["link"];
type MetaProps = JSX.IntrinsicElements["meta"];
export interface HelmetTags {
baseTag: Array<any>;
linkTags: Array<HTMLLinkElement>;
metaTags: Array<HTMLMetaElement>;
noscriptTags: Array<any>;
scriptTags: Array<HTMLScriptElement>;
styleTags: Array<HTMLStyleElement>;
}
export interface HelmetProps {
async?: boolean | undefined;
base?: any;
bodyAttributes?: BodyProps | undefined;
children?: React.ReactNode;
defaultTitle?: string | undefined;
defer?: boolean | undefined;
encodeSpecialCharacters?: boolean | undefined;
htmlAttributes?: HtmlProps | undefined;
onChangeClientState?: ((newState: any, addedTags: HelmetTags, removedTags: HelmetTags) => void) | undefined;
link?: LinkProps[] | undefined;
meta?: MetaProps[] | undefined;
noscript?: Array<any> | undefined;
script?: Array<any> | undefined;
style?: Array<any> | undefined;
title?: string | undefined;
titleAttributes?: Object | undefined;
titleTemplate?: string | undefined;
}
export class Helmet extends React.Component<HelmetProps> {
static peek(): HelmetData;
static rewind(): HelmetData;
static renderStatic(): HelmetData;
static canUseDOM: boolean;
}
export interface HelmetData {
base: HelmetDatum;
bodyAttributes: HelmetHTMLBodyDatum;
htmlAttributes: HelmetHTMLElementDatum;
link: HelmetDatum;
meta: HelmetDatum;
noscript: HelmetDatum;
script: HelmetDatum;
style: HelmetDatum;
title: HelmetDatum;
titleAttributes: HelmetDatum;
}
export interface HelmetDatum {
toString(): string;
toComponent(): React.ReactElement;
}
export interface HelmetHTMLBodyDatum {
toString(): string;
toComponent(): React.HTMLAttributes<HTMLBodyElement>;
}
export interface HelmetHTMLElementDatum {
toString(): string;
toComponent(): React.HTMLAttributes<HTMLHtmlElement>;
}
export const peek: () => HelmetData;
export const rewind: () => HelmetData;
export const renderStatic: () => HelmetData;
export const canUseDOM: boolean;
export default Helmet;
````
### Additional Details
* Last updated: Wed, 27 Sep 2023 07:12:04 GMT
* Last updated: Wed, 18 Oct 2023 11:45:05 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)
* Global values: none
# Credits
These definitions were written by [Evan Bremer](https://github.com/evanbb), [Isman Usoh](https://github.com/isman-usoh), [Yui T.](https://github.com/yuit), [Yamagishi Kazutoshi](https://github.com/ykzts), and [Justin Hall](https://github.com/wKovacs64).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc