@w5s/coreInterfacesNotSur cette pageNot <Self, Output>Module interface for the unary ! operatorIndex MethodsnotMethods notnot(self: Self): OutputPerforms the equivalent of the ! operation.@exampletype Answer = 'yes' | 'no';const Answer: Not<Answer> = { not(self) => self === 'yes' ? 'no' : 'yes',};Answer.not('yes') // 'no'Answer.not('no') // 'yes'
Module interface for the unary
!
operator