AgoraIO-Extensions / terra

terra is a shell of the code-gen flow
MIT License
2 stars 0 forks source link

feat: Add some extension functions for CXXTerraNode #51

Closed littleGnAl closed 9 months ago

littleGnAl commented 9 months ago

Add some extension functions to check the node type

let node = new CXXFile();
// before 
if (node.__TYPE === CXXTYPE.CXXFile) {}
// now
if (node.isCXXFile()) {}