[{"data":1,"prerenderedAt":149},["ShallowReactive",2],{"\u002Fnotes\u002Ftype-safe-object-entries":3},{"id":4,"title":5,"body":6,"description":139,"draft":140,"extension":141,"meta":142,"navigation":143,"path":144,"publishDate":145,"seo":146,"stem":147,"__hash__":148},"notes\u002Fnotes\u002Ftype-safe-object-entries.md","Typesafe Object.entries()",{"type":7,"value":8,"toc":137},"minimark",[9,133],[10,11,16],"pre",{"className":12,"code":13,"language":14,"meta":15,"style":15},"language-ts shiki shiki-themes github-light github-light github-dark","export function objectEntries\u003CT extends object>(obj: T): [keyof T, T[keyof T]][] {\n  return Object.entries(obj) as [keyof T, T[keyof T]][];\n}\n","ts","",[17,18,19,90,127],"code",{"__ignoreMap":15},[20,21,24,28,31,35,39,42,45,49,52,56,59,62,65,67,70,73,75,78,80,83,85,87],"span",{"class":22,"line":23},"line",1,[20,25,27],{"style":26},"--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583","export",[20,29,30],{"style":26}," function",[20,32,34],{"style":33},"--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0"," objectEntries",[20,36,38],{"style":37},"--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8","\u003C",[20,40,41],{"style":33},"T",[20,43,44],{"style":26}," extends",[20,46,48],{"style":47},"--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF"," object",[20,50,51],{"style":37},">(",[20,53,55],{"style":54},"--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFAB70","obj",[20,57,58],{"style":26},":",[20,60,61],{"style":33}," T",[20,63,64],{"style":37},")",[20,66,58],{"style":26},[20,68,69],{"style":37}," [",[20,71,72],{"style":26},"keyof",[20,74,61],{"style":33},[20,76,77],{"style":37},", ",[20,79,41],{"style":33},[20,81,82],{"style":37},"[",[20,84,72],{"style":26},[20,86,61],{"style":33},[20,88,89],{"style":37},"]][] {\n",[20,91,93,96,99,102,105,108,110,112,114,116,118,120,122,124],{"class":22,"line":92},2,[20,94,95],{"style":26},"  return",[20,97,98],{"style":37}," Object.",[20,100,101],{"style":33},"entries",[20,103,104],{"style":37},"(obj) ",[20,106,107],{"style":26},"as",[20,109,69],{"style":37},[20,111,72],{"style":26},[20,113,61],{"style":33},[20,115,77],{"style":37},[20,117,41],{"style":33},[20,119,82],{"style":37},[20,121,72],{"style":26},[20,123,61],{"style":33},[20,125,126],{"style":37},"]][];\n",[20,128,130],{"class":22,"line":129},3,[20,131,132],{"style":37},"}\n",[134,135,136],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":15,"searchDepth":92,"depth":92,"links":138},[],"Simple utility function to have typesafe values for Object.entries()",false,"md",{},true,"\u002Fnotes\u002Ftype-safe-object-entries","2025-01-30",{"title":5,"description":139},"notes\u002Ftype-safe-object-entries","XLC9DK66XNU3yNDf-A4mpl9cYZ83iMprMyxtN1fWhzQ",1793705160875]