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.3.1 to 4.3.2

71

marked v4.3/index.d.ts

@@ -24,3 +24,3 @@ // Type definitions for Marked 4.3

*/
export function marked(src: string, options: marked.MarkedOptions & {async: true}): Promise<string>;
export function marked(src: string, options: marked.MarkedOptions & { async: true }): Promise<string>;

@@ -89,3 +89,3 @@ /**

*/
function parse(src: string, options: MarkedOptions & {async: true}): Promise<string>;
function parse(src: string, options: MarkedOptions & { async: true }): Promise<string>;

@@ -191,3 +191,3 @@ /**

type TokenizerObject = Partial<Omit<Tokenizer<false>, 'constructor' | 'options'>>;
type TokenizerObject = Partial<Omit<Tokenizer<false>, "constructor" | "options">>;

@@ -219,3 +219,3 @@ class Renderer<T = never> {

header: boolean;
align: 'center' | 'left' | 'right' | null;
align: "center" | "left" | "right" | null;
},

@@ -233,3 +233,3 @@ ): string | T;

type RendererObject = Partial<Omit<Renderer<false>, 'constructor' | 'options'>>;
type RendererObject = Partial<Omit<Renderer<false>, "constructor" | "options">>;

@@ -327,3 +327,3 @@ class TextRenderer {

interface Space {
type: 'space';
type: "space";
raw: string;

@@ -333,5 +333,5 @@ }

interface Code {
type: 'code';
type: "code";
raw: string;
codeBlockStyle?: 'indented' | undefined;
codeBlockStyle?: "indented" | undefined;
lang?: string | undefined;

@@ -342,3 +342,3 @@ text: string;

interface Heading {
type: 'heading';
type: "heading";
raw: string;

@@ -351,5 +351,5 @@ depth: number;

interface Table {
type: 'table';
type: "table";
raw: string;
align: Array<'center' | 'left' | 'right' | null>;
align: Array<"center" | "left" | "right" | null>;
header: TableCell[];

@@ -365,3 +365,3 @@ rows: TableCell[][];

interface Hr {
type: 'hr';
type: "hr";
raw: string;

@@ -371,3 +371,3 @@ }

interface Blockquote {
type: 'blockquote';
type: "blockquote";
raw: string;

@@ -379,6 +379,6 @@ text: string;

interface List {
type: 'list';
type: "list";
raw: string;
ordered: boolean;
start: number | '';
start: number | "";
loose: boolean;

@@ -389,3 +389,3 @@ items: ListItem[];

interface ListItem {
type: 'list_item';
type: "list_item";
raw: string;

@@ -400,3 +400,3 @@ task: boolean;

interface Paragraph {
type: 'paragraph';
type: "paragraph";
raw: string;

@@ -409,3 +409,3 @@ pre?: boolean | undefined;

interface HTML {
type: 'html';
type: "html";
raw: string;

@@ -417,3 +417,3 @@ pre: boolean;

interface Text {
type: 'text';
type: "text";
raw: string;

@@ -425,3 +425,3 @@ text: string;

interface Def {
type: 'def';
type: "def";
raw: string;

@@ -434,3 +434,3 @@ tag: string;

interface Escape {
type: 'escape';
type: "escape";
raw: string;

@@ -441,3 +441,3 @@ text: string;

interface Tag {
type: 'text' | 'html';
type: "text" | "html";
raw: string;

@@ -450,3 +450,3 @@ inLink: boolean;

interface Link {
type: 'link';
type: "link";
raw: string;

@@ -460,3 +460,3 @@ href: string;

interface Image {
type: 'image';
type: "image";
raw: string;

@@ -469,3 +469,3 @@ href: string;

interface Strong {
type: 'strong';
type: "strong";
raw: string;

@@ -477,3 +477,3 @@ text: string;

interface Em {
type: 'em';
type: "em";
raw: string;

@@ -485,3 +485,3 @@ text: string;

interface Codespan {
type: 'codespan';
type: "codespan";
raw: string;

@@ -492,3 +492,3 @@ text: string;

interface Br {
type: 'br';
type: "br";
raw: string;

@@ -498,3 +498,3 @@ }

interface Del {
type: 'del';
type: "del";
raw: string;

@@ -519,3 +519,3 @@ text: string;

name: string;
level: 'block' | 'inline';
level: "block" | "inline";
start?: ((this: TokenizerThis, src: string) => number | void) | undefined;

@@ -535,3 +535,6 @@ tokenizer: (this: TokenizerThis, src: string, tokens: Token[] | TokensList) => Tokens.Generic | void;

type TokenizerAndRendererExtension = TokenizerExtension | RendererExtension | (TokenizerExtension & RendererExtension);
type TokenizerAndRendererExtension =
| TokenizerExtension
| RendererExtension
| (TokenizerExtension & RendererExtension);

@@ -590,4 +593,4 @@ interface MarkedExtension {

hooks?: {
preprocess?: (markdown: string) => string,
postprocess?: (html: string) => string,
preprocess?: (markdown: string) => string;
postprocess?: (html: string) => string;
};

@@ -660,3 +663,3 @@

interface MarkedOptions extends Omit<MarkedExtension, 'extensions'> {
interface MarkedOptions extends Omit<MarkedExtension, "extensions"> {
/**

@@ -663,0 +666,0 @@ * Type: object Default: new Renderer()

{
"name": "@types/marked",
"version": "4.3.1",
"version": "4.3.2",
"description": "TypeScript definitions for Marked",

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

"dependencies": {},
"typesPublisherContentHash": "0871f68186733c2b6724faa18257f9eaa0c37b58e9cddc48691c1a66e98d24db",
"typeScriptVersion": "4.3"
"typesPublisherContentHash": "0beb7f3569b5b3fca1bc1ec1420ae75338a2bf57d9c750b18cad9d5c09605038",
"typeScriptVersion": "4.5"
}

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

### Additional Details
* Last updated: Thu, 18 May 2023 22:02:52 GMT
* Last updated: Wed, 27 Sep 2023 09:42:15 GMT
* Dependencies: none

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

Sorry, the diff of this file is not supported yet

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