( potentialClass: any, superJson: SuperJSON )
| 237 | ); |
| 238 | |
| 239 | export function isInstanceOfRegisteredClass( |
| 240 | potentialClass: any, |
| 241 | superJson: SuperJSON |
| 242 | ): potentialClass is any { |
| 243 | if (potentialClass?.constructor) { |
| 244 | const isRegistered = !!superJson.classRegistry.getIdentifier( |
| 245 | potentialClass.constructor |
| 246 | ); |
| 247 | return isRegistered; |
| 248 | } |
| 249 | return false; |
| 250 | } |
| 251 | |
| 252 | const classRule = compositeTransformation( |
| 253 | isInstanceOfRegisteredClass, |
no test coverage detected
searching dependent graphs…