PageSourceSearch

https://touying-typ.github.io/assets/js/c6555721.8ed43a69.js

js touying-typ.github.io collected 2026-10-03 10:08:47 UTC 3,107 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6869],{8464:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>o,contentTitle:()=>a,default:()=>u,frontMatter:()=>s,metadata:()=>c,toc:()=>d});var t=n(85893),r=n(11151);const s={sidebar_position:14,description:"Determine if a content is a metadata with a specific kind.",toc_max_heading_level:2},a="is-kind",c={id:"reference/utils/is-kind",title:"is-kind",description:"Determine if a content is a metadata with a specific kind.",source:"@site/docs/reference/utils/is-kind.mdx",sourceDirName:"reference/utils",slug:"/reference/utils/is-kind",permalink:"/docs/reference/utils/is-kind",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:14,frontMatter:{sidebar_position:14,description:"Determine if a content is a metadata with a specific kind.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"is-metadata",permalink:"/docs/reference/utils/is-metadata"},next:{title:"is-heading",permalink:"/docs/reference/utils/is-heading"}},o={},d=[{value:"it : <TypeLink></TypeLink>",id:"it",level:3},{value:"kind : <TypeLink></TypeLink>",id:"kind",level:3}];function l(e){const i={a:"a",h1:"h1",h3:"h3",p:"p",strong:"strong",...(0,r.a)(),...e.components},{Param:n,Parameters:s,Signature:a,SignatureName:c,SignatureParam:o,SourceLink:d,TypeLink:l}=i;return n||h("Param",!0),s||h("Parameters",!0),a||h("Signature",!0),c||h("SignatureName",!0),o||h("SignatureParam",!0),d||h("SourceLink",!0),l||h("TypeLink",!0),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.h1,{id:"is-kind",children:"is-kind"}),"\n",(0,t.jsx)(a,{children:(0,t.jsxs)("code",{children:[(0,t.jsx)(c,{children:"is-kind"}),"(",(0,t.jsxs)(o,{children:[(0,t.jsx)(i.a,{href:"#it",children:"it"}),", "]}),(0,t.jsx)(o,{children:(0,t.jsx)(i.a,{href:"#kind",children:"kind"})}),")",(0,t.jsx)(d,{href:"https://github.com/touying-typ/touying/blob/main/src/utils.typ#L311"})]})}),"\n",(0,t.jsx)(i.p,{children:"Determine if a content is a metadata with a specific kind."}),"\n",(0,t.jsxs)(s,{children:[(0,t.jsxs)(i.h3,{id:"it",children:["it : ",(0,t.jsx)(l,{type:"content"})]}),(0,t.jsx)(n,{children:(0,t.jsx)(i.p,{children:"The content to check."})}),(0,t.jsxs)(i.h3,{id:"kind",children:["kind : ",(0,t.jsx)(l,{type:"str"})]}),(0,t.jsx)(n,{children:(0,t.jsx)(i.p,{children:"The kind string to match."})})]}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.strong,{children:"Returns:"})," ",(0,t.jsx)(l,{type:"bool"})]})]})}function u(e={}){const{wrapper:i}={...(0,r.a)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}function h(e,i){throw new Error("Expected "+(i?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},11151:(e,i,n)=>{n.d(i,{Z:()=>c,a:()=>a});var t=n(67294);const r={},s=t.createContext(r);function a(e){const i=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function c(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),t.createElement(s.Provider,{value:i},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.