包详细信息

@webdoc/model

SukantPal23kThe Prosperity Public License 3.0.02.2.0

Doclet API for JavaScript

doclet, docs, jsdoc

自述文件

© 2020-2022 webdoc Labs

@webdoc/model

This package is the API for editing and querying in-memory documentation tree models. @webdoc/types defines the node structure.

Installation :package:

This package is usually a dependency of templates and other webdoc packages.

npm install @webdoc/model

Usage :newspaper_roll:

import * as model from '@webdoc/model';

Constructing and editing documents

const entity = model.createDoc(
  "DocumentedEntity",
  "ClassDoc",
  {
    "description": "This is a programmatically created document!",
  }
);

const entityNs = model.doc("Documentation.Entities", documentTree);

model.addChildDoc(entity, entityNs);

@webdoc/model exports helper functions for creating and searching documents and mounting them into document trees.

Data types

model.createFunctionType(
  [model.createSimpleKeywordType("Promise")], // params
  model.createSimpleKeywordType("boolean"),   // returns
);

@webdoc/model exports helper functions for creating and joining data types. The DataType type is defined in @webdoc/types.

Querying

// Gets all the methods named "generic" in DocumentedEntity. Each signature of the method has a separate document. The
// # operator excludes any static "generic"-named methods.
const genericSignatures = model.query("Documentation.Entities.DocumentedEntity#generic", documentTree);

@webdoc/model exports a query engine for its document path language.

Runtime type-checking

const isInstantiable = model.isClass(doc) || model.isInterface(doc);

@webdoc/model exports helper functions for checking the types of document passed.

更新日志

Change Log - @webdoc/model

This log was last generated on Sun, 23 Oct 2022 01:05:11 GMT and should not be manually modified.

2.2.0

Sun, 23 Oct 2022 01:05:11 GMT

Updates

  • Additional type definitions

2.1.2

Sat, 27 Aug 2022 10:38:56 GMT

Version update only

2.1.1

Sat, 27 Aug 2022 09:27:43 GMT

Version update only

2.1.0

Fri, 26 Aug 2022 09:26:31 GMT

Version update only

2.0.0

Sat, 16 Jul 2022 23:37:07 GMT

Version update only

1.6.6

Tue, 14 Jun 2022 01:01:45 GMT

Version update only

1.6.5

Sun, 12 Jun 2022 20:53:46 GMT

Updates

  • Fix issue with query engine not resolving tutorials in query results.

1.6.3

Fri, 10 Jun 2022 00:19:18 GMT

Version update only

1.6.2

Thu, 09 Jun 2022 03:55:26 GMT

Version update only

1.6.1

Tue, 07 Jun 2022 02:12:51 GMT

Version update only

1.6.0

Mon, 06 Jun 2022 00:15:27 GMT

Version update only

1.5.7

Sun, 20 Feb 2022 18:11:30 GMT

Updates

  • Support for advanced variants in query API. For example, "ns.className#method[params[0][dataType] = string]" to get a specific method overload!

1.5.6

Sat, 12 Feb 2022 19:48:05 GMT

Version update only

1.5.5

Tue, 28 Sep 2021 01:43:51 GMT

Version update only

1.5.4

Sun, 19 Sep 2021 16:37:03 GMT

Version update only

1.5.3

Sun, 12 Sep 2021 19:13:46 GMT

Version update only

1.5.2

Sun, 12 Sep 2021 19:13:02 GMT

Version update only

1.5.1

Sat, 10 Jul 2021 01:54:14 GMT

Version update only

1.5.0

Sun, 06 Jun 2021 19:52:30 GMT

Version update only

1.4.0

Sun, 23 May 2021 21:16:03 GMT

Version update only

1.3.4

Mon, 03 May 2021 14:30:44 GMT

Version update only

1.3.3

Sun, 02 May 2021 22:03:03 GMT

Version update only

1.3.2

Sat, 01 May 2021 23:21:56 GMT

Version update only

1.3.1

Sun, 25 Apr 2021 21:01:31 GMT

Version update only

1.3.0

Sun, 25 Apr 2021 20:31:03 GMT

Updates

  • Export CANONICAL_SEPARATORS

1.2.2

Sat, 24 Apr 2021 13:49:32 GMT

Version update only

1.2.1

Sat, 17 Apr 2021 23:54:20 GMT

Updates

  • Fix scope inference on prototype-assigned members (#97)

1.2.0

Sun, 07 Feb 2021 20:20:23 GMT

Updates

  • Fix package documents being unsorted.

1.1.6

Tue, 02 Feb 2021 04:00:07 GMT

Version update only

1.1.5

Sun, 17 Jan 2021 16:21:24 GMT

Version update only

1.1.4

Sat, 16 Jan 2021 16:17:04 GMT

Version update only

1.1.3

Sat, 28 Nov 2020 16:51:35 GMT

Updates

  • Fix non-unique IDs in cloned documents

1.1.2

Sun, 22 Nov 2020 16:57:25 GMT

Version update only

1.1.1

Fri, 06 Nov 2020 00:46:42 GMT

Version update only

1.0.1

Fri, 06 Nov 2020 00:32:36 GMT

Updates

  • Release webdoc 1.1.0 with better linking API that supports method overloads and DPL queries