Socket
Socket
Sign inDemoInstall

@types/marked

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/marked - npm Package Compare versions

Comparing version 4.0.3 to 4.0.4

23

marked/index.d.ts

@@ -80,7 +80,3 @@ // Type definitions for Marked 4.0

*/
function parse(
src: string,
options?: MarkedOptions,
callback?: (error: any, parseResult: string) => void,
): string;
function parse(src: string, options?: MarkedOptions, callback?: (error: any, parseResult: string) => void): string;

@@ -153,3 +149,8 @@ /**

): Tokens.Link | Tokens.Image | Tokens.Text | T;
emStrong(this: Tokenizer & TokenizerThis, src: string, maskedSrc: string, prevChar: string): Tokens.Em | Tokens.Strong | T;
emStrong(
this: Tokenizer & TokenizerThis,
src: string,
maskedSrc: string,
prevChar: string,
): Tokens.Em | Tokens.Strong | T;
codespan(this: Tokenizer & TokenizerThis, src: string): Tokens.Codespan | T;

@@ -228,3 +229,3 @@ br(this: Tokenizer & TokenizerThis, src: string): Tokens.Br | T;

parse(src: Token[] | TokensList): string;
parseInline(src: Token[], renderer: Renderer): string;
parseInline(src: Token[], renderer?: Renderer): string;
next(): Token;

@@ -245,3 +246,3 @@ }

inline(src: string, tokens: Token[]): void;
inlineTokens(src: string, tokens: Token[]): Token[];
inlineTokens(src: string, tokens?: Token[]): Token[];
state: {

@@ -523,7 +524,3 @@ inLink: boolean;

*/
highlight?(
code: string,
lang: string,
callback?: (error: any, code?: string) => void,
): string | void;
highlight?(code: string, lang: string, callback?: (error: any, code?: string) => void): string | void;

@@ -530,0 +527,0 @@ /**

{
"name": "@types/marked",
"version": "4.0.3",
"version": "4.0.4",
"description": "TypeScript definitions for Marked",

@@ -78,4 +78,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/marked",

"dependencies": {},
"typesPublisherContentHash": "b33e1af17fb00a1cbf698146c2d72ef6123f95980b5f17dd637874c386c3d453",
"typeScriptVersion": "3.9",
"typesPublisherContentHash": "6820d8782f921c8eff889adcba6284961ccb75f3e5fa1448d1b20d8ed4a7c1aa",
"typeScriptVersion": "4.0",
"exports": {

@@ -82,0 +82,0 @@ ".": {

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 21 Mar 2022 11:01:43 GMT
* Last updated: Wed, 17 Aug 2022 17:32:28 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

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