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 3.0.3 to 3.0.4

58

marked v3.0/index.d.ts

@@ -155,3 +155,3 @@ // Type definitions for Marked 3.0

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

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

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

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

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

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

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

@@ -297,5 +297,5 @@ }

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

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

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

@@ -315,5 +315,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[];

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

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

@@ -335,3 +335,3 @@ }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -462,3 +462,3 @@ }

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

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

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

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

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

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

{
"name": "@types/marked",
"version": "3.0.3",
"version": "3.0.4",
"description": "TypeScript definitions for Marked",

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

"dependencies": {},
"typesPublisherContentHash": "e901c4010138bcf2df8b236419ea507e6154ce01f27961621def87c0fe9999eb",
"typeScriptVersion": "3.7"
"typesPublisherContentHash": "b1a713eb828cc0344e204acf22ca61e2dbf02e30b7fa28f56dde21819c957c57",
"typeScriptVersion": "4.5"
}

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

### Additional Details
* Last updated: Mon, 08 Nov 2021 17:31:32 GMT
* Last updated: Wed, 27 Sep 2023 09:42:15 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `marked`

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