ImplementInterfaceUnchecked declares interface conformance without performing the dagql structural Satisfies check. Use this when a higher-level type system (e.g. core's IsSubtypeOf) has already validated conformance.
(iface *Interface)
| 64 | // the dagql structural Satisfies check. Use this when a higher-level type system |
| 65 | // (e.g. core's IsSubtypeOf) has already validated conformance. |
| 66 | func (class Class[T]) ImplementInterfaceUnchecked(iface *Interface) { |
| 67 | class.fieldsL.Lock() |
| 68 | class.interfaces[iface.TypeName()] = iface |
| 69 | class.fieldsL.Unlock() |
| 70 | iface.addImplementor(class.TypeName()) |
| 71 | if class.invalidateSchemaCache != nil { |
| 72 | class.invalidateSchemaCache() |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | type ClassOpts[T Typed] struct { |
| 77 | // NoIDs disables the default "id" field and disables the IDType method. |
nothing calls this directly
no test coverage detected